[llvm] r289926 - attempt to fix windows build
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 15 21:13:03 PST 2016
Author: nico
Date: Thu Dec 15 23:13:02 2016
New Revision: 289926
URL: http://llvm.org/viewvc/llvm-project?rev=289926&view=rev
Log:
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=289926&r1=289925&r2=289926&view=diff
==============================================================================
--- llvm/trunk/lib/IR/Verifier.cpp (original)
+++ llvm/trunk/lib/IR/Verifier.cpp Thu Dec 15 23:13:02 2016
@@ -662,11 +662,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