ssa: toType(ssa.TypeParam)

This commit is contained in:
Li Jie
2025-01-19 19:02:58 +08:00
parent 164c3e0e7b
commit c1da220a99

View File

@@ -391,6 +391,8 @@ func (p Program) toType(raw types.Type) Type {
return &aType{llvm.PointerType(p.rtChan(), 0), typ, vkChan}
case *types.Alias:
return p.toType(types.Unalias(t))
case *types.TypeParam:
return p.toType(t.Constraint())
}
panic(fmt.Sprintf("toLLVMType: todo - %T\n", raw))
}