diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-13 18:36:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-13 18:36:22 +0300 |
commit | b93d2cb75a0e01876ab600dc3dec6a7f53d4dd8c (patch) | |
tree | 41e9d0c0e8aaf072714b6f2a67b642be3fc10138 /src/parsers/decl | |
parent | 23c4fc020718cfbc43bc83d3b5ce88ab5bdab111 (diff) | |
download | paranucker-b93d2cb75a0e01876ab600dc3dec6a7f53d4dd8c.tar.gz paranucker-b93d2cb75a0e01876ab600dc3dec6a7f53d4dd8c.tar.bz2 paranucker-b93d2cb75a0e01876ab600dc3dec6a7f53d4dd8c.tar.xz paranucker-b93d2cb75a0e01876ab600dc3dec6a7f53d4dd8c.zip |
Fix different crash issues.
Diffstat (limited to 'src/parsers/decl')
-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, |