summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-15 17:28:26 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-04-15 17:28:26 +0000
commit0d640014ffb0a8e7b77b29b59314b33d276d616c (patch)
treee7a77b31ec1bccc2c9c665a9bf6333ce5d4d474b /llvm/lib/IR/Verifier.cpp
parente1627b43f99a51e4145877640a77dff0ab405389 (diff)
downloadbcm5719-llvm-0d640014ffb0a8e7b77b29b59314b33d276d616c.tar.gz
bcm5719-llvm-0d640014ffb0a8e7b77b29b59314b33d276d616c.zip
verify-di: Add back braces for MSVC compatability
Fixup after r206300. <rdar://problem/15500563> llvm-svn: 206305
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp17
1 files changed, 12 insertions, 5 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index 887ca7d48eb..e7c67c7e4f9 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2377,16 +2377,23 @@ void DebugInfoVerifier::verifyDebugInfo() {
processInstructions(Finder);
// Verify Debug Info.
- for (DICompileUnit CU : Finder.compile_units())
+ //
+ // NOTE: The loud braces are necessary for MSVC compatibility.
+ for (DICompileUnit CU : Finder.compile_units()) {
Assert1(CU.Verify(), "DICompileUnit does not Verify!", CU);
- for (DISubprogram S : Finder.subprograms())
+ }
+ for (DISubprogram S : Finder.subprograms()) {
Assert1(S.Verify(), "DISubprogram does not Verify!", S);
- for (DIGlobalVariable GV : Finder.global_variables())
+ }
+ for (DIGlobalVariable GV : Finder.global_variables()) {
Assert1(GV.Verify(), "DIGlobalVariable does not Verify!", GV);
- for (DIType T : Finder.types())
+ }
+ for (DIType T : Finder.types()) {
Assert1(T.Verify(), "DIType does not Verify!", T);
- for (DIScope S : Finder.scopes())
+ }
+ for (DIScope S : Finder.scopes()) {
Assert1(S.Verify(), "DIScope does not Verify!", S);
+ }
}
void DebugInfoVerifier::processInstructions(DebugInfoFinder &Finder) {
OpenPOWER on IntegriCloud