mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
Merge pull request #1875 from zhiqiangxu:fix_scope_add
PiperOrigin-RevId: 315341669
This commit is contained in:
@@ -72,6 +72,10 @@ func (s *scope) deepLookup(n string) *symbol {
|
||||
}
|
||||
|
||||
func (s *scope) add(name string, kind SymKind, pos token.Pos) {
|
||||
if s.syms[name] != nil {
|
||||
return
|
||||
}
|
||||
|
||||
s.syms[name] = &symbol{
|
||||
kind: kind,
|
||||
pos: pos,
|
||||
|
||||
Reference in New Issue
Block a user