changeset 1b21c87b7c18 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=1b21c87b7c18
description:
        slicc: isinstance bugfix

        This fix prevents spurious errors when searching for a symbol that may 
be
        located in one of multiple symbol tables.

diffstat:

 src/mem/slicc/symbols/SymbolTable.py |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (14 lines):

diff -r fca6a566f057 -r 1b21c87b7c18 src/mem/slicc/symbols/SymbolTable.py
--- a/src/mem/slicc/symbols/SymbolTable.py      Fri Jul 31 22:53:17 2015 -0400
+++ b/src/mem/slicc/symbols/SymbolTable.py      Mon Jul 20 09:15:18 2015 -0500
@@ -85,8 +85,8 @@
 
             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
 
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to