diff options
Diffstat (limited to 'src/parsers/decl/result_decl.cpp')
-rw-r--r-- | src/parsers/decl/result_decl.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/parsers/decl/result_decl.cpp b/src/parsers/decl/result_decl.cpp index 163e757..8a85c47 100644 --- a/src/parsers/decl/result_decl.cpp +++ b/src/parsers/decl/result_decl.cpp @@ -44,6 +44,17 @@ void parseResultDeclNode(ResultDeclNode *node) node, TREE_TYPE(node->gccNode), "result type")); + + node->declSize = static_cast<IntegerCstNode*>(createParseNode( + node, + DECL_SIZE(node->gccNode), + INTEGER_CST, + "decl size")); + + node->initial = createParseNode( + node, + DECL_INITIAL(node->gccNode), + "initial"); } } |