diff options
Diffstat (limited to 'src/mem/slicc/ast/ReturnStatementAST.py')
-rw-r--r-- | src/mem/slicc/ast/ReturnStatementAST.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/ReturnStatementAST.py b/src/mem/slicc/ast/ReturnStatementAST.py index 1d08a7234..f1aff1c32 100644 --- a/src/mem/slicc/ast/ReturnStatementAST.py +++ b/src/mem/slicc/ast/ReturnStatementAST.py @@ -42,7 +42,7 @@ class ReturnStatementAST(StatementAST): # Is return valid here? if return_type is None: - error("Invalid 'return' statement") + self.error("Invalid 'return' statement") # The return type must match if return_type != actual_type: |