summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Hashe <david.hashe@amd.com>2015-07-20 09:15:18 -0500
committerDavid Hashe <david.hashe@amd.com>2015-07-20 09:15:18 -0500
commita254786a19e382c639bd76ff60d4b4518e1801c7 (patch)
tree3b4fe77833cdd6573047c868588b41cf531dde4e /src
parenta72c75dceaf5bd633cd849c841a4bb5d99c6e193 (diff)
downloadgem5-a254786a19e382c639bd76ff60d4b4518e1801c7.tar.xz
slicc: isinstance bugfix
This fix prevents spurious errors when searching for a symbol that may be located in one of multiple symbol tables.
Diffstat (limited to 'src')
-rw-r--r--src/mem/slicc/symbols/SymbolTable.py4
1 files changed, 2 insertions, 2 deletions
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