test: map/slice clear

This commit is contained in:
Li Jie
2025-01-03 10:29:55 +08:00
parent 76fb91619a
commit 239ac496b2
3 changed files with 184 additions and 2 deletions

View File

@@ -388,8 +388,6 @@ func (p Program) toType(raw types.Type) Type {
return &aType{llvm.ArrayType(elem.ll, int(t.Len())), typ, vkArray}
case *types.Chan:
return &aType{llvm.PointerType(p.rtChan(), 0), typ, vkChan}
case *types.TypeParam:
return p.toType(t.Underlying())
}
panic(fmt.Sprintf("toLLVMType: todo - %T\n", raw))
}