cl: TestPython; build: PkgLinkExtern

This commit is contained in:
xushiwei
2024-05-12 13:05:15 +08:00
parent 2e3cc49782
commit acecbf587d
9 changed files with 38 additions and 62 deletions

View File

@@ -486,7 +486,7 @@ func isPhi(i ssa.Instruction) bool {
func (p *context) compilePhis(b llssa.Builder, block *ssa.BasicBlock) int {
ret := p.fn.Block(block.Index)
b.SetBlock(ret)
b.SetBlockEx(ret, llssa.AtEnd)
if ninstr := len(block.Instrs); ninstr > 0 {
if isPhi(block.Instrs[0]) {
n := 1