Commit dd98bebe
dd98bebebd7dMerged
sacckey <[email protected]> · 6 months ago · 1 file · ~1 modified
Description
fix(codegen): avoid duplicate SP_GC_SAVE in constructor initialize path
Details
- Commit
- dd98bebebd7d
- Parent
- 2a03d8f28f2c
spinel_codegen.rbmodifiedView file
@@ -11027,11 +11027,9 @@
1102711027
j = j + 11102811028
end1102911029
if has_gc_locals == 111030-
if @needs_gc == 111031-
if @in_gc_scope == 011032-
emit(" SP_GC_SAVE();")11033-
@in_gc_scope = 111034-
end11030+
if @needs_gc == 1 && @in_gc_scope == 011031+
emit(" SP_GC_SAVE();")11032+
@in_gc_scope = 11103511033
end1103611034
end1103711035
j = 0