From: Alex Lorenz Date: Fri, 21 Jul 2017 12:57:40 +0000 (+0000) Subject: Fix tuple construction compiler error from r308731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=40f4d83d416101fa7e7c1d96816876a74cdac2d1;p=clang Fix tuple construction compiler error from r308731 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308733 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/ASTDiff/ASTDiff.cpp b/lib/Tooling/ASTDiff/ASTDiff.cpp index d4c6702030..f25136b1ae 100644 --- a/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/lib/Tooling/ASTDiff/ASTDiff.cpp @@ -138,7 +138,7 @@ struct PreorderVisitor : public RecursiveASTVisitor { Parent = MyId; ++Id; ++Depth; - return {MyId, Root.getNode(MyId).Parent}; + return std::make_tuple(MyId, Root.getNode(MyId).Parent); } void PostTraverse(std::tuple State) { NodeId MyId, PreviousParent;