From 549df6a80ea326d0381a16c7675b4ac6ededda35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Tue, 21 Jan 2020 11:07:23 +0100 Subject: [PATCH] Clang import; Fixed wrong AST --- lib/clangimport.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/clangimport.cpp b/lib/clangimport.cpp index 606b71b4c..9a56bc03a 100644 --- a/lib/clangimport.cpp +++ b/lib/clangimport.cpp @@ -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;