llgo/ssa: unreachable

This commit is contained in:
xushiwei
2024-04-29 18:33:02 +08:00
parent 8c1b8ad945
commit e1d1d6a2d9
4 changed files with 59 additions and 0 deletions

View File

@@ -329,6 +329,8 @@ func (p *context) compileInstrOrValue(b llssa.Builder, iv instrOrValue, asValue
ret = cstr(b, call.Args)
case llgoAlloca:
ret = p.alloca(b, call.Args)
case llgoUnreachable:
b.Unreachable()
default:
panic("todo")
}