projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b02210
)
Ruby: Fix typo in Slicc if-statement AST error
author
Jason Power
<powerjg@cs.wisc.edu>
Tue, 9 Apr 2013 21:12:42 +0000
(16:12 -0500)
committer
Jason Power
<powerjg@cs.wisc.edu>
Tue, 9 Apr 2013 21:12:42 +0000
(16:12 -0500)
The error in the SLICC code was hidden by the python error in SLICC parser
before this patch
src/mem/slicc/ast/IfStatementAST.py
patch
|
blob
|
history
diff --git
a/src/mem/slicc/ast/IfStatementAST.py
b/src/mem/slicc/ast/IfStatementAST.py
index 0e023195cb2b70bc6da9333baefa44318c8d871f..3ad3d182d7abd40cbb2d32c1e83ef76999ff81db 100644
(file)
--- 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)
+ c
ond_
type)
# Conditional
code.indent()