compiler: unwrap pointers for debug types

We have almost no difference between Type and *Type.
This commit is contained in:
Roman Khimov 2022-11-25 13:01:57 +03:00
parent d7fafea328
commit 2bcf3a4ad5

View file

@ -339,7 +339,9 @@ func (c *codegen) scAndVMTypeFromType(t types.Type, exts map[string]binding.Exte
return st, vt, over, et
}
}
if ptr, isPtr := t.(*types.Pointer); isPtr {
t = ptr.Elem()
}
var over binding.Override
switch t := t.Underlying().(type) {
case *types.Basic: