Skip to content

Commit 4e4db50

Browse files
committed
Clang import: Use getChild
1 parent abb1987 commit 4e4db50

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/clangimport.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ Token * clangimport::AstNode::createTokensCall(TokenList *tokenList)
12011201
Token *f;
12021202
if (nodeType == CXXOperatorCallExpr) {
12031203
firstParam = 2;
1204-
Token *obj = children[1]->createTokens(tokenList);
1204+
Token *obj = getChild(1)->createTokens(tokenList);
12051205
Token *dot = addtoken(tokenList, ".");
12061206
Token *op = getChild(0)->createTokens(tokenList);
12071207
dot->astOperand1(obj);

0 commit comments

Comments
 (0)