diff options
author | Andrei Karas <akaras@inbox.ru> | 2015-06-12 12:59:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2015-06-12 12:59:04 +0300 |
commit | 194b1771182b10fcb202fc7f4d0cd3853ccf4c76 (patch) | |
tree | 85c13fb810ade7cb50848707e21f56a3662dedc3 | |
parent | 2c5859a64a45c76d615d04e181ae713a001a2beb (diff) | |
download | paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.gz paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.bz2 paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.xz paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.zip |
Add missing check into parsing RECORD_TYPE node.
-rw-r--r-- | src/parsers/type/record_type.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parsers/type/record_type.cpp b/src/parsers/type/record_type.cpp index e832030..ab4e606 100644 --- a/src/parsers/type/record_type.cpp +++ b/src/parsers/type/record_type.cpp @@ -36,6 +36,9 @@ void parseRecordTypeNode(RecordTypeNode *node) fillTypeName(node); fillTypeAttributes(node); + if (!node->parseChilds) + return; + FOR_CHAIN(node->gccNode, it, TYPE_FIELDS, DECL_CHAIN) { node->fields.push_back(static_cast<DeclNode*>( |