[llvm] r213954 - Fix MSVC2012 build error in UseListOrder.cpp
Hans Wennborg
hans at hanshq.net
Fri Jul 25 09:22:14 PDT 2014
Author: hans
Date: Fri Jul 25 11:22:13 2014
New Revision: 213954
URL: http://llvm.org/viewvc/llvm-project?rev=213954&view=rev
Log:
Fix MSVC2012 build error in UseListOrder.cpp
I think the compiler got confused by the nested DEBUG macros.
It was failing with:
UseListOrder.cpp(80) : error C2059: syntax error : '}'
Modified:
llvm/trunk/lib/IR/UseListOrder.cpp
Modified: llvm/trunk/lib/IR/UseListOrder.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/UseListOrder.cpp?rev=213954&r1=213953&r2=213954&view=diff
==============================================================================
--- llvm/trunk/lib/IR/UseListOrder.cpp (original)
+++ llvm/trunk/lib/IR/UseListOrder.cpp Fri Jul 25 11:22:13 2014
@@ -74,9 +74,10 @@ static void shuffleValueUseLists(Value *
[&Order](const Use &L, const Use &R) { return Order[&L] < Order[&R]; });
DEBUG({
- for (const Use &U : V->uses())
- DEBUG(dbgs() << " - order: " << Order.lookup(&U) << ", U = ";
- U.getUser()->dump());
+ for (const Use &U : V->uses()) {
+ dbgs() << " - order: " << Order.lookup(&U) << ", U = ";
+ U.getUser()->dump();
+ }
});
}
More information about the llvm-commits
mailing list