summaryrefslogtreecommitdiffstats
path: root/llvm/lib/IR/Verifier.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/lib/IR/Verifier.cpp')
-rw-r--r--llvm/lib/IR/Verifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/IR/Verifier.cpp b/llvm/lib/IR/Verifier.cpp
index ff98126529d..5a7b8daa5e6 100644
--- a/llvm/lib/IR/Verifier.cpp
+++ b/llvm/lib/IR/Verifier.cpp
@@ -2126,7 +2126,7 @@ void Verifier::visitFunction(const Function &F) {
auto *N = F.getSubprogram();
HasDebugInfo = (N != nullptr);
- if (!N)
+ if (!HasDebugInfo)
return;
// Check that all !dbg attachments lead to back to N (or, at least, another
OpenPOWER on IntegriCloud