fix compile error

This commit is contained in:
2026-02-10 19:02:42 -06:00
parent 504e268b9d
commit f52dd80d52

View File

@@ -42,11 +42,11 @@ if (rc != 0) {
// Use awk via shell to avoid blob/slurpwrite issues with long strings
print('post-process...')
var awk_cmd = `awk '
/^[[:space:]]*ret / || /^[[:space:]]*jmp / { need_label=1; print; next }
need_label && /^[[:space:]]*[^@}]/ && NF > 0 {
print "@_dead_" dead_id; dead_id++; need_label=0
}
/^@/ || /^}/ || NF==0 { need_label=0 }
/^[[:space:]]*ret / || /^[[:space:]]*jmp / { need_label=1; print; next }
{ print }
' ` + ssa_path + ` > ` + tmp + `_fixed.ssa`
rc = os.system(awk_cmd)