diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2016-12-16 05:13:02 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2016-12-16 05:13:02 +0000 |
| commit | 7aac3fdc2c101b20561dcb1306eed3a109b7287e (patch) | |
| tree | ec7f91fa4dd8b012bdc17cdde1d29ae53d474b45 /llvm/lib | |
| parent | 25da8a9b53bb7789e3b91edecb026b9968165f5f (diff) | |
| download | bcm5719-llvm-7aac3fdc2c101b20561dcb1306eed3a109b7287e.tar.gz bcm5719-llvm-7aac3fdc2c101b20561dcb1306eed3a109b7287e.zip | |
attempt to fix windows build
llvm-svn: 289926
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/IR/Verifier.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index a7c3db184a8..d413e7a1880 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<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); |

