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 + 1
1102811028 end
1102911029 if has_gc_locals == 1
11030- if @needs_gc == 1
11031- if @in_gc_scope == 0
11032- emit(" SP_GC_SAVE();")
11033- @in_gc_scope = 1
11034- end
11030+ if @needs_gc == 1 && @in_gc_scope == 0
11031+ emit(" SP_GC_SAVE();")
11032+ @in_gc_scope = 1
1103511033 end
1103611034 end
1103711035 j = 0