slicc: fix error in conflicing symbol declaration
authorBrad Beckmann <Brad.Beckmann@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Mon, 20 Jul 2015 14:15:18 +0000 (09:15 -0500)
src/mem/slicc/symbols/SymbolTable.py

index ea470ab7dd81ad3585c434e3f9ca0aa50e6e5bbd..844e4c63f6e877fb8d7aaf79e326fa5122a12287 100644 (file)
@@ -70,7 +70,7 @@ class SymbolTable(object):
 
         for sym_map in self.sym_map_vec:
             if id in sym_map:
-                if type(self.sym_map_vec[0][id]) != type(sym):
+                if type(sym_map[id]) != type(sym):
                     sym.error("Conflicting declaration of Symbol '%s'", id)
 
         # FIXME - warn on masking of a declaration in a previous frame