From c2e681059bcd7f76f13029988f133858dc82c205 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Wed, 24 Nov 2021 10:15:34 +0100 Subject: [PATCH] jit: Initialize function::m_blocks in ctor This resolves the problem reported here: https://mail.gnu.org/archive/html/bug-gnu-emacs/2021-11/msg00606.html https://bugzilla.opensuse.org/show_bug.cgi?id=1192951 gcc/jit/ChangeLog: * jit-playback.c (function): Initialize m_blocks vector. --- gcc/jit/jit-playback.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c index 59399dee251..b412eae6aa8 100644 --- a/gcc/jit/jit-playback.c +++ b/gcc/jit/jit-playback.c @@ -1484,7 +1484,8 @@ function (context *ctxt, : m_ctxt(ctxt), m_inner_fndecl (fndecl), m_inner_bind_expr (NULL), - m_kind (kind) + m_kind (kind), + m_blocks () { if (m_kind != GCC_JIT_FUNCTION_IMPORTED) {