cl: compileValue check types.Default for const

This commit is contained in:
visualfc
2024-04-30 08:13:39 +08:00
parent 04f81f3dbb
commit a792e312db
3 changed files with 3 additions and 3 deletions

View File

@@ -208,7 +208,7 @@ func (p Program) tyInt64() llvm.Type {
}
func (p Program) toLLVMType(typ types.Type) Type {
switch t := types.Default(typ).(type) {
switch t := typ.(type) {
case *types.Basic:
switch t.Kind() {
case types.Int: