From 7aac3fdc2c101b20561dcb1306eed3a109b7287e Mon Sep 17 00:00:00 2001 From: Nico Weber Date: Fri, 16 Dec 2016 05:13:02 +0000 Subject: [PATCH] attempt to fix windows build llvm-svn: 289926 --- llvm/lib/IR/Verifier.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index a7c3db1..d413e7a 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -662,11 +662,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); -- 2.7.4