From a254786a19e382c639bd76ff60d4b4518e1801c7 Mon Sep 17 00:00:00 2001 From: David Hashe Date: Mon, 20 Jul 2015 09:15:18 -0500 Subject: [PATCH] slicc: isinstance bugfix This fix prevents spurious errors when searching for a symbol that may be located in one of multiple symbol tables. --- src/mem/slicc/symbols/SymbolTable.py | 4 ++-- 1 file 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 -- 2.30.2