summaryrefslogtreecommitdiff
path: root/colm/parser.cc
diff options
context:
space:
mode:
Diffstat (limited to 'colm/parser.cc')
-rw-r--r--colm/parser.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/colm/parser.cc b/colm/parser.cc
index 3b60cb77..b2dde7d8 100644
--- a/colm/parser.cc
+++ b/colm/parser.cc
@@ -340,11 +340,11 @@ void BaseParser::blockClose()
}
void BaseParser::functionDef( StmtList *stmtList, ObjectDef *localFrame,
- ParameterList *paramList, TypeRef *typeRef, const String &name )
+ ParameterList *paramList, TypeRef *typeRef, const String &name, bool exprt )
{
CodeBlock *codeBlock = CodeBlock::cons( stmtList, localFrame );
Function *newFunction = Function::cons( typeRef, name,
- paramList, codeBlock, pd->nextFuncId++, false );
+ paramList, codeBlock, pd->nextFuncId++, false, exprt );
pd->functionList.append( newFunction );
newFunction->inContext = contextStack.top();
}
@@ -354,7 +354,7 @@ void BaseParser::iterDef( StmtList *stmtList, ObjectDef *localFrame,
{
CodeBlock *codeBlock = CodeBlock::cons( stmtList, localFrame );
Function *newFunction = Function::cons( 0, name,
- paramList, codeBlock, pd->nextFuncId++, true );
+ paramList, codeBlock, pd->nextFuncId++, true, false );
pd->functionList.append( newFunction );
}