summaryrefslogtreecommitdiff
path: root/src/parsers
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-12 12:59:04 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-12 12:59:04 +0300
commit194b1771182b10fcb202fc7f4d0cd3853ccf4c76 (patch)
tree85c13fb810ade7cb50848707e21f56a3662dedc3 /src/parsers
parent2c5859a64a45c76d615d04e181ae713a001a2beb (diff)
downloadparanucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.gz
paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.bz2
paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.tar.xz
paranucker-194b1771182b10fcb202fc7f4d0cd3853ccf4c76.zip
Add missing check into parsing RECORD_TYPE node.
Diffstat (limited to 'src/parsers')
-rw-r--r--src/parsers/type/record_type.cpp3
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*>(