cl: don't need to compile alias type

This commit is contained in:
xushiwei
2024-04-29 02:56:21 +08:00
parent 98065e80d0
commit 616596e571
3 changed files with 6 additions and 129 deletions

View File

@@ -137,6 +137,9 @@ type context struct {
func (p *context) compileType(pkg llssa.Package, t *ssa.Type) {
tn := t.Object().(*types.TypeName)
if tn.IsAlias() { // don't need to compile alias type
return
}
tnName := tn.Name()
typ := tn.Type()
name := llssa.FullName(tn.Pkg(), tnName)