[llvm] r273811 - [CodeExtractor] Merge DEBUG statements in an attempt to fix the msvc
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 26 06:39:33 PDT 2016
Author: d0k
Date: Sun Jun 26 08:39:33 2016
New Revision: 273811
URL: http://llvm.org/viewvc/llvm-project?rev=273811&view=rev
Log:
[CodeExtractor] Merge DEBUG statements in an attempt to fix the msvc
build.
There's a known bug in msvc 2013 that fails to compile do-while loops
inside of ranged for loops.
Modified:
llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
Modified: llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp?rev=273811&r1=273810&r2=273811&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/CodeExtractor.cpp Sun Jun 26 08:39:33 2016
@@ -315,10 +315,12 @@ Function *CodeExtractor::constructFuncti
paramTy.push_back(PointerType::getUnqual(output->getType()));
}
- DEBUG(dbgs() << "Function type: " << *RetTy << " f(");
- for (Type *i : paramTy)
- DEBUG(dbgs() << *i << ", ");
- DEBUG(dbgs() << ")\n");
+ DEBUG({
+ dbgs() << "Function type: " << *RetTy << " f(";
+ for (Type *i : paramTy)
+ dbgs() << *i << ", ";
+ dbgs() << ")\n";
+ });
StructType *StructTy;
if (AggregateArgs && (inputs.size() + outputs.size() > 0)) {
More information about the llvm-commits
mailing list