]> granicus.if.org Git - clang/commitdiff
Fix another compiler error from r308731
authorAlex Lorenz <arphaman@gmail.com>
Fri, 21 Jul 2017 13:04:57 +0000 (13:04 +0000)
committerAlex Lorenz <arphaman@gmail.com>
Fri, 21 Jul 2017 13:04:57 +0000 (13:04 +0000)
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

lib/Tooling/ASTDiff/ASTDiff.cpp

index f25136b1ae66897c9d5134599904892b64ac4347..c20c00741700efa3d415908c1c1a41b08fc1b382 100644 (file)
@@ -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;