summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2016-06-26 13:39:33 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2016-06-26 13:39:33 +0000
commit36a5f73f454bdb0c092745fe9c8b092b6c3ca7ac (patch)
treef6ac72c1da8d5613aa347eb8d3f848b99e281bf3
parent1c56f09923714ae23c86701e0b4baa820ddf95d1 (diff)
[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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@273811 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/Transforms/Utils/CodeExtractor.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/Transforms/Utils/CodeExtractor.cpp b/lib/Transforms/Utils/CodeExtractor.cpp
index a2fa6a76d26..9f2181f87ce 100644
--- a/lib/Transforms/Utils/CodeExtractor.cpp
+++ b/lib/Transforms/Utils/CodeExtractor.cpp
@@ -315,10 +315,12 @@ Function *CodeExtractor::constructFunction(const ValueSet &inputs,
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)) {