summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAaron Ballman <aaron@aaronballman.com>2014-04-16 11:15:57 +0000
committerAaron Ballman <aaron@aaronballman.com>2014-04-16 11:15:57 +0000
commit58ce7f24cda77496ef31c150424bdf7a9e4c70d7 (patch)
tree0092b62b7bc3c9341d57812e3624ab5ee82a8d86 /llvm/lib
parenteacd996daf0399e9e5773e561fb1adcbe88456a4 (diff)
downloadbcm5719-llvm-58ce7f24cda77496ef31c150424bdf7a9e4c70d7.tar.gz
bcm5719-llvm-58ce7f24cda77496ef31c150424bdf7a9e4c70d7.zip
Fixing a compile error in debug versions of MSVC. It seems that the range-based for loop is confused by the DEBUG macro expansion unless a compound statement is used.
llvm-svn: 206376
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Target/ARM64/ARM64CollectLOH.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/Target/ARM64/ARM64CollectLOH.cpp b/llvm/lib/Target/ARM64/ARM64CollectLOH.cpp
index 713b53d5c54..6e168a83792 100644
--- a/llvm/lib/Target/ARM64/ARM64CollectLOH.cpp
+++ b/llvm/lib/Target/ARM64/ARM64CollectLOH.cpp
@@ -492,8 +492,9 @@ static void printReachingDef(const InstrToInstrs *ColorOpToReachedUses,
DEBUG(dbgs() << "Def:\n");
DEBUG(DefsIt.first->print(dbgs()));
DEBUG(dbgs() << "Reachable uses:\n");
- for (const MachineInstr *MI : DefsIt.second)
+ for (const MachineInstr *MI : DefsIt.second) {
DEBUG(MI->print(dbgs()));
+ }
}
}
}
OpenPOWER on IntegriCloud