From 706e48839d11f01fcae93f51a3d95c3fe1c1f495 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 26 Jun 2016 13:39:33 +0000 Subject: [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. llvm-svn: 273811 --- llvm/lib/Transforms/Utils/CodeExtractor.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'llvm/lib/Transforms/Utils/CodeExtractor.cpp') diff --git a/llvm/lib/Transforms/Utils/CodeExtractor.cpp b/llvm/lib/Transforms/Utils/CodeExtractor.cpp index a2fa6a76d26..9f2181f87ce 100644 --- a/llvm/lib/Transforms/Utils/CodeExtractor.cpp +++ b/llvm/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)) { -- cgit v1.2.3