llgo/ssa: pkg.NewFunc bugfix

This commit is contained in:
xushiwei
2024-04-28 12:09:47 +08:00
parent eb4146d80d
commit 2cc1bdee19
12 changed files with 65 additions and 52 deletions

View File

@@ -74,7 +74,7 @@ func (b Builder) Panic(v Expr) {
log.Printf("Panic %v\n", v.impl)
}
pkg := b.fn.pkg
b.Call(pkg.rtAbort().Expr)
b.Call(pkg.rtAbort()) // TODO(xsw): pass v
}
// Return emits a return instruction.