Browse Source

Make sure we handle all package members

pull/6/head
Ayke van Laethem 6 years ago
parent
commit
ad9a62f260
No known key found for this signature in database GPG Key ID: E97FF5335DFDFDED
  1. 4
      ir.go

4
ir.go

@ -94,6 +94,10 @@ func (p *Program) AddPackage(pkg *ssa.Package) {
g := &Global{g: member}
p.Globals = append(p.Globals, g)
p.globalMap[member] = g
case *ssa.NamedConst:
// Ignore: these are already resolved.
default:
panic("unknown member type: " + member.String())
}
}
}

Loading…
Cancel
Save