fix(qbe): use extraData instead of child3 for hIf else-branch

Block lowering overwrites child3 for statement chaining.
Else block is stored in extraData by hir_lower (matches c_backend).
Fixes QBE parse error 'last block misses jump' in if-without-else chains.
This commit is contained in:
2026-06-02 18:07:35 +03:00
parent eb8179b6d0
commit ec4e748584
10 changed files with 756 additions and 72 deletions
+4
View File
@@ -298,6 +298,10 @@ func parserParsePrimary(p: *Parser) -> *Expr {
}
// ---------------------------------------------------------------------------
func dummyFunc() -> int {
return 0;
}
// Postfix: call, index, field access, as, is, ?
// ---------------------------------------------------------------------------