From d72804ad7633da3d07b11fd16e5d19fb8d393e1d Mon Sep 17 00:00:00 2001 From: Hans Wennborg Date: Fri, 25 Jul 2014 16:22:13 +0000 Subject: [PATCH] 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 : '}' git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@213954 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/UseListOrder.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/IR/UseListOrder.cpp b/lib/IR/UseListOrder.cpp index dda7f25cf2f..311b51818bf 100644 --- a/lib/IR/UseListOrder.cpp +++ b/lib/IR/UseListOrder.cpp @@ -74,9 +74,10 @@ static void shuffleValueUseLists(Value *V, std::minstd_rand0 &Gen, [&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(); + } }); } -- 2.34.1