From e1768aea0915a0031d1282502bf1b362c202d41f Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 7 Mar 2017 17:50:51 +0000 Subject: [PATCH] Rephrase condition for better readability. NFC git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297168 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/IR/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/IR/Verifier.cpp b/lib/IR/Verifier.cpp index ff98126529d..5a7b8daa5e6 100644 --- a/lib/IR/Verifier.cpp +++ b/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 -- 2.50.1