[llvm] r206305 - verify-di: Add back braces for MSVC compatability
Duncan P. N. Exon Smith
dexonsmith at apple.com
Tue Apr 15 10:28:26 PDT 2014
Author: dexonsmith
Date: Tue Apr 15 12:28:26 2014
New Revision: 206305
URL: http://llvm.org/viewvc/llvm-project?rev=206305&view=rev
Log:
verify-di: Add back braces for MSVC compatability
Fixup after r206300.
<rdar://problem/15500563>
Modified:
llvm/trunk/lib/IR/Verifier.cpp
Modified: llvm/trunk/lib/IR/Verifier.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/IR/Verifier.cpp?rev=206305&r1=206304&r2=206305&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Tue Apr 15 12:28:26 2014
@@ -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) {
More information about the llvm-commits
mailing list