slicc: isinstance bugfix
authorDavid Hashe <david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
committerDavid Hashe <david.hashe@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
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

index 48a7ec8d24310a3c3849b64e20aeea0b9a7fa6d4..ea470ab7dd81ad3585c434e3f9ca0aa50e6e5bbd 100644 (file)
@@ -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