]> gcc.gnu.org Git - gcc.git/commitdiff
jit: Initialize function::m_blocks in ctor
authorMartin Liska <mliska@suse.cz>
Wed, 24 Nov 2021 09:15:34 +0000 (10:15 +0100)
committerMartin Liska <mliska@suse.cz>
Wed, 24 Nov 2021 10:31:20 +0000 (11:31 +0100)
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.

(cherry picked from commit c2e681059bcd7f76f13029988f133858dc82c205)

gcc/jit/jit-playback.c

index b74495c58b2cca694a54b3d13bd4df3c40156cd0..ebdb56cbc6db4043f411bd558417fa69fcced80b 100644 (file)
@@ -1287,7 +1287,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)
     {
This page took 0.063162 seconds and 5 git commands to generate.