diff options
author | Martin Liska <mliska@suse.cz> | 2021-11-24 10:15:34 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-11-24 11:29:15 +0100 |
commit | c2e681059bcd7f76f13029988f133858dc82c205 (patch) | |
tree | 0e3b6d8b0c7135e1d8e518e6a1a654be73acde98 /gcc/jit | |
parent | be60f80247feb72b47af62cda66c82a0fa6c1cdc (diff) | |
download | gcc-c2e681059bcd7f76f13029988f133858dc82c205.zip gcc-c2e681059bcd7f76f13029988f133858dc82c205.tar.gz gcc-c2e681059bcd7f76f13029988f133858dc82c205.tar.bz2 |
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.
Diffstat (limited to 'gcc/jit')
-rw-r--r-- | gcc/jit/jit-playback.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/jit/jit-playback.c b/gcc/jit/jit-playback.c index 59399de..b412eae 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) { |