[llvm] r290158 - Reapply r289926: attempt to fix windows build

Adrian Prantl via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 18:33:30 PST 2016


Author: adrian
Date: Mon Dec 19 20:33:30 2016
New Revision: 290158

URL: http://llvm.org/viewvc/llvm-project?rev=290158&view=rev
Log:
Reapply r289926: attempt to fix windows build

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=290158&r1=290157&r2=290158&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Mon Dec 19 20:33:30 2016
@@ -648,11 +648,12 @@ void Verifier::visitGlobalVariable(const
   // Visit any debug info attachments.
   SmallVector<MDNode *, 1> MDs;
   GV.getMetadata(LLVMContext::MD_dbg, MDs);
-  for (auto *MD : MDs)
+  for (auto *MD : MDs) {
     if (auto *GVE = dyn_cast<DIGlobalVariableExpression>(MD))
       visitDIGlobalVariableExpression(*GVE);
     else
       AssertDI(false, "!dbg attachment of global variable must be a DIGlobalVariableExpression");
+  }
 
   if (!GV.hasInitializer()) {
     visitGlobalValue(GV);




More information about the llvm-commits mailing list