diff options
Diffstat (limited to 'src/parsers/decl/function_decl.cpp')
-rw-r--r-- | src/parsers/decl/function_decl.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/parsers/decl/function_decl.cpp b/src/parsers/decl/function_decl.cpp index 76f9f00..08304de 100644 --- a/src/parsers/decl/function_decl.cpp +++ b/src/parsers/decl/function_decl.cpp @@ -50,10 +50,9 @@ void parseFunctionDeclNode(FunctionDeclNode *node) return; fillDeclAttributes(node); - node->functionType = static_cast<FunctionTypeNode*>(createParseNode( + node->functionType = static_cast<TypeNode*>(createParseNode( node, TREE_TYPE(node->gccNode), - FUNCTION_TYPE, "function type")); node->result = static_cast<ResultDeclNode*>(createParseNode( node, |