Clang import; Fixed wrong AST

This commit is contained in:
Daniel Marjamäki 2020-01-21 11:07:23 +01:00
parent a6deae5f94
commit 549df6a80e
1 changed files with 1 additions and 1 deletions

View File

@ -545,7 +545,7 @@ Token *clangimport::AstNode::createTokens(TokenList *tokenList)
Token *tok2 = addtoken(tokenList, ":");
Token *expr3 = children[2]->createTokens(tokenList);
tok2->astOperand1(expr2);
tok2->astOperand1(expr3);
tok2->astOperand2(expr3);
tok1->astOperand1(expr1);
tok1->astOperand2(tok2);
return tok1;