r308734 - Fix another compiler error from r308731
Alex Lorenz via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 21 06:04:57 PDT 2017
Author: arphaman
Date: Fri Jul 21 06:04:57 2017
New Revision: 308734
URL: http://llvm.org/viewvc/llvm-project?rev=308734&view=rev
Log:
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.
Modified:
cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp
Modified: cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp?rev=308734&r1=308733&r2=308734&view=diff
==============================================================================
--- cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp (original)
+++ cfe/trunk/lib/Tooling/ASTDiff/ASTDiff.cpp Fri Jul 21 06:04:57 2017
@@ -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;
More information about the cfe-commits
mailing list