summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2015-07-20 09:15:18 -0500
committerBrad Beckmann <Brad.Beckmann@amd.com>2015-07-20 09:15:18 -0500
commit848861a17d72b5c555b0b36d594cc66ac1de8c12 (patch)
treeebc51295635ae73cc03822546bbfbb9350378fae
parent8a54adc2a55c9858cb536fac3a9cd92bc47ce778 (diff)
downloadgem5-848861a17d72b5c555b0b36d594cc66ac1de8c12.tar.xz
slicc: fix error in conflicing symbol declaration
-rw-r--r--src/mem/slicc/symbols/SymbolTable.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/symbols/SymbolTable.py b/src/mem/slicc/symbols/SymbolTable.py
index ea470ab7d..844e4c63f 100644
--- a/src/mem/slicc/symbols/SymbolTable.py
+++ b/src/mem/slicc/symbols/SymbolTable.py
@@ -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