fix bug in IR regarding type aliases

This commit is contained in:
Jaden Weiss
2019-09-19 23:38:16 -04:00
committed by Ron Evans
parent cf2a7b5089
commit 7732c6f449
3 changed files with 45 additions and 0 deletions
+3
View File
@@ -178,6 +178,9 @@ func (p *Program) AddPackage(pkg *ssa.Package) {
}
func (p *Program) addFunction(ssaFn *ssa.Function) {
if _, ok := p.functionMap[ssaFn]; ok {
return
}
f := &Function{Function: ssaFn}
f.parsePragmas()
p.Functions = append(p.Functions, f)