summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Power <powerjg@cs.wisc.edu>2013-04-09 16:12:42 -0500
committerJason Power <powerjg@cs.wisc.edu>2013-04-09 16:12:42 -0500
commit19cc9fc6bd4c725a37b3442a03fc7d874d160930 (patch)
tree9841ebf7aa22b352c4835d7b32c82f8f5f850a71
parent3b02210713a3b8f46750638003784115a738ec78 (diff)
downloadgem5-19cc9fc6bd4c725a37b3442a03fc7d874d160930.tar.xz
Ruby: Fix typo in Slicc if-statement AST error
The error in the SLICC code was hidden by the python error in SLICC parser before this patch
-rw-r--r--src/mem/slicc/ast/IfStatementAST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/IfStatementAST.py b/src/mem/slicc/ast/IfStatementAST.py
index 0e023195c..3ad3d182d 100644
--- a/src/mem/slicc/ast/IfStatementAST.py
+++ b/src/mem/slicc/ast/IfStatementAST.py
@@ -48,7 +48,7 @@ class IfStatementAST(StatementAST):
if cond_type != self.symtab.find("bool", Type):
self.cond.error("Condition of if stmt must be bool, type was '%s'",
- ctype)
+ cond_type)
# Conditional
code.indent()