summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-06-17 15:24:09 +0300
committerAndrei Karas <akaras@inbox.ru>2015-06-17 15:24:09 +0300
commit16a882fa8d4e57193b86b4e18247e896b032eb84 (patch)
tree1b1021356e1d8c6a019dcfc2d1cad631d29d8e92 /src
parent886e834edd351987afd82e87df410856ffcfdfb2 (diff)
downloadparanucker-16a882fa8d4e57193b86b4e18247e896b032eb84.tar.gz
paranucker-16a882fa8d4e57193b86b4e18247e896b032eb84.tar.bz2
paranucker-16a882fa8d4e57193b86b4e18247e896b032eb84.tar.xz
paranucker-16a882fa8d4e57193b86b4e18247e896b032eb84.zip
Allow parse ref operands without checking tree operands limit.
Diffstat (limited to 'src')
-rw-r--r--src/parsers/base/ref.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parsers/base/ref.cpp b/src/parsers/base/ref.cpp
index 76da1ba..0e42286 100644
--- a/src/parsers/base/ref.cpp
+++ b/src/parsers/base/ref.cpp
@@ -69,9 +69,9 @@ Node *getRefOperand(RefNode *node,
{
if (!node || node->gccNode == NULL_TREE)
return nullptr;
- const int sz = TREE_OPERAND_LENGTH(node->gccNode);
- if (sz >= pos)
- return nullptr;
+// const int sz = TREE_OPERAND_LENGTH(node->gccNode);
+// if (sz >= pos)
+// return nullptr;
return createParseNode(
node,