compiler: unwrap pointers for debug types
We have almost no difference between Type and *Type.
This commit is contained in:
parent
d7fafea328
commit
2bcf3a4ad5
1 changed files with 3 additions and 1 deletions
|
@ -339,7 +339,9 @@ func (c *codegen) scAndVMTypeFromType(t types.Type, exts map[string]binding.Exte
|
||||||
return st, vt, over, et
|
return st, vt, over, et
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if ptr, isPtr := t.(*types.Pointer); isPtr {
|
||||||
|
t = ptr.Elem()
|
||||||
|
}
|
||||||
var over binding.Override
|
var over binding.Override
|
||||||
switch t := t.Underlying().(type) {
|
switch t := t.Underlying().(type) {
|
||||||
case *types.Basic:
|
case *types.Basic:
|
||||||
|
|
Loading…
Reference in a new issue