diff options
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
| -rw-r--r-- | llvm/lib/IR/Verifier.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp index fa18c3cd0f40..e99c5e5056bb 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -842,7 +842,7 @@ void Verifier::visitGlobalVariable(const GlobalVariable &GV) { // If the global has common linkage, it must have a zero initializer and // cannot be constant. if (GV.hasCommonLinkage()) { - Check(GV.getInitializer()->isNullValue(), + Check(GV.getInitializer()->isZeroValue(), "'common' global must have a zero initializer!", &GV); Check(!GV.isConstant(), "'common' global may not be marked constant!", &GV); |
