From: David Hashe Date: Mon, 20 Jul 2015 14:15:18 +0000 (-0500) Subject: slicc: isinstance bugfix X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a254786a19e382c639bd76ff60d4b4518e1801c7;p=gem5.git slicc: isinstance bugfix This fix prevents spurious errors when searching for a symbol that may be located in one of multiple symbol tables. --- diff --git a/src/mem/slicc/symbols/SymbolTable.py b/src/mem/slicc/symbols/SymbolTable.py index 48a7ec8d2..ea470ab7d 100644 --- a/src/mem/slicc/symbols/SymbolTable.py +++ b/src/mem/slicc/symbols/SymbolTable.py @@ -85,8 +85,8 @@ class SymbolTable(object): if types is not None: if not isinstance(symbol, types): - symbol.error("Symbol '%s' is not of types '%s'.", - symbol, types) + continue # there could be a name clash with other symbol + # so rather than producing an error, keep trying return symbol