ssa: fix type toNamed

This commit is contained in:
visualfc
2024-05-24 07:38:06 +08:00
parent b7f2bae2ef
commit 825e2eec51
2 changed files with 5 additions and 4 deletions

View File

@@ -396,7 +396,8 @@ func (p Program) toNamed(raw *types.Named) Type {
name := NameOf(raw)
return &aType{p.toLLVMNamedStruct(name, t), rawType{raw}, vkStruct}
default:
return p.rawType(t)
typ := p.rawType(t)
return &aType{typ.ll, rawType{raw}, typ.kind}
}
}