projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
25da8a9
)
attempt to fix windows build
author
Nico Weber
<nicolasweber@gmx.de>
Fri, 16 Dec 2016 05:13:02 +0000
(
05:13
+0000)
committer
Nico Weber
<nicolasweber@gmx.de>
Fri, 16 Dec 2016 05:13:02 +0000
(
05:13
+0000)
llvm-svn: 289926
llvm/lib/IR/Verifier.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/IR/Verifier.cpp
b/llvm/lib/IR/Verifier.cpp
index
a7c3db1
..
d413e7a
100644
(file)
--- 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<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);