diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-10-26 17:06:32 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-10-26 17:06:32 -0700 |
commit | 0fdfc82bde5b8975ee93d5da9c604ad9b99942e0 (patch) | |
tree | cc9bb4a3b75804928ce847a8c791e7c079b77a7c /src/mem/slicc/ast/MemberExprAST.py | |
parent | 1b2d75d6d276f316b8c3f40fa93901ab6233128f (diff) | |
download | gem5-0fdfc82bde5b8975ee93d5da9c604ad9b99942e0.tar.xz |
fixed error message generation bug in SLICC ast files
Diffstat (limited to 'src/mem/slicc/ast/MemberExprAST.py')
-rw-r--r-- | src/mem/slicc/ast/MemberExprAST.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/slicc/ast/MemberExprAST.py b/src/mem/slicc/ast/MemberExprAST.py index 113bb188a..c62e28741 100644 --- a/src/mem/slicc/ast/MemberExprAST.py +++ b/src/mem/slicc/ast/MemberExprAST.py @@ -47,9 +47,9 @@ class MemberExprAST(ExprAST): # Verify that this is a valid field name for this type if self.field not in return_type.data_members: - error("Invalid object field: " + - "Type '%s' does not have data member %s" % \ - (return_type, self.field)) + self.error("Invalid object field: " + + "Type '%s' does not have data member %s" % \ + (return_type, self.field)) # Return the type of the field return return_type.data_members[self.field].type |