ssa: fix llgo:type c for typeparam named
This commit is contained in:
@@ -125,7 +125,7 @@ func (p *goProgram) extraSize(typ types.Type, ptrSize int64) (ret int64) {
|
||||
retry:
|
||||
switch t := typ.(type) {
|
||||
case *types.Named:
|
||||
if p.gocvt.typbg[t.String()] == InC {
|
||||
if v, ok := p.gocvt.typbg.Load(namedLinkname(t)); ok && v.(Background) == InC {
|
||||
return 0
|
||||
}
|
||||
typ = t.Underlying()
|
||||
|
||||
Reference in New Issue
Block a user