llgo/ssa: phi refactor

This commit is contained in:
xushiwei
2024-05-26 14:58:26 +08:00
parent 91c9b4e168
commit 5cf6a30027
9 changed files with 197 additions and 74 deletions

View File

@@ -109,9 +109,7 @@ func TestCvtType(t *testing.T) {
}
func TestUserdefExpr(t *testing.T) {
b := &phisExprTy{}
c := &pyVarTy{}
_ = b.String()
_ = c.String()
test := func(a types.Type) {
defer func() {
@@ -121,7 +119,6 @@ func TestUserdefExpr(t *testing.T) {
}()
a.Underlying()
}
test(b)
test(c)
}