runtime.Rethrow fix; llgo/ssa: IndirectJump fix

This commit is contained in:
xushiwei
2024-06-12 20:53:30 +08:00
parent d500902eff
commit 42a5c60af6
13 changed files with 555 additions and 237 deletions

View File

@@ -48,6 +48,12 @@ func (p BasicBlock) Index() int {
return p.idx
}
// Addr returns the address of the basic block.
func (p BasicBlock) Addr() Expr {
fn := p.fn
return Expr{llvm.BlockAddress(fn.impl, p.first), fn.Prog.VoidPtr()}
}
// -----------------------------------------------------------------------------
type aBuilder struct {