summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorAdrian Prantl <aprantl@apple.com>2016-12-20 02:33:30 +0000
committerAdrian Prantl <aprantl@apple.com>2016-12-20 02:33:30 +0000
commitdc6e0169ae208471f204543a0d4643b34e712a96 (patch)
treee9871db93cec38c9641b98e1a00d45cc37ef8031 /llvm/lib
parent398f55f6f67d3b9cb31b67e564bc4ded2fab645f (diff)
downloadbcm5719-llvm-dc6e0169ae208471f204543a0d4643b34e712a96.tar.gz
bcm5719-llvm-dc6e0169ae208471f204543a0d4643b34e712a96.zip
Reapply r289926: attempt to fix windows build
llvm-svn: 290158
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/IR/Verifier.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index d6ea433d76d..2b9dfcea2fb 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -648,11 +648,12 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) {
// 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);
OpenPOWER on IntegriCloud