From: Alex Lorenz Date: Fri, 21 Jul 2017 13:04:57 +0000 (+0000) Subject: Fix another compiler error from r308731 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba8e7e6c8a783c65036c280ba9e90f0be1e760f5;p=clang Fix another compiler error from r308731 std::pair in emplace back couldn't be constructed because SNodeId has an explicit constructor. Not sure how this even compiled on my machine before. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@308734 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Tooling/ASTDiff/ASTDiff.cpp b/lib/Tooling/ASTDiff/ASTDiff.cpp index f25136b1ae..c20c007417 100644 --- a/lib/Tooling/ASTDiff/ASTDiff.cpp +++ b/lib/Tooling/ASTDiff/ASTDiff.cpp @@ -469,7 +469,7 @@ public: bool RootNodePair = true; - TreePairs.emplace_back(S1.getSize(), S2.getSize()); + TreePairs.emplace_back(SNodeId(S1.getSize()), SNodeId(S2.getSize())); while (!TreePairs.empty()) { SNodeId LastRow, LastCol, FirstRow, FirstCol, Row, Col;