From: Adrian Prantl Date: Tue, 20 Dec 2016 02:33:30 +0000 (+0000) Subject: Reapply r289926: attempt to fix windows build X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c84e30c126026747fe554fb5061dd5edc4e38bd6;p=llvm Reapply r289926: attempt to fix windows build git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@290158 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index d6ea433d76d..2b9dfcea2fb 100644 --- a/lib/IR/Verifier.cpp +++ b/lib/IR/Verifier.cpp @@ -648,11 +648,12 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) { // Visit any debug info attachments. SmallVector MDs; GV.getMetadata(LLVMContext::MD_dbg, MDs); - for (auto *MD : MDs) + for (auto *MD : MDs) { if (auto *GVE = dyn_cast(MD)) visitDIGlobalVariableExpression(*GVE); else AssertDI(false, "!dbg attachment of global variable must be a DIGlobalVariableExpression"); + } if (!GV.hasInitializer()) { visitGlobalValue(GV);