typeAssert: bool float string

This commit is contained in:
visualfc
2024-05-10 13:25:36 +08:00
parent c9cc7ad9f7
commit e985eda857
8 changed files with 412 additions and 238 deletions

View File

@@ -188,6 +188,10 @@ func (p Program) tyInt64() llvm.Type {
return p.int64Type
}
func (p Program) toTuple(typ *types.Tuple) Type {
return &aType{p.toLLVMTuple(typ), rawType{typ}, vkTuple}
}
func (p Program) toType(raw types.Type) Type {
typ := rawType{raw}
switch t := raw.(type) {