From 39c6fa6064440b0744ab8ff7726a0e1d8b34129b Mon Sep 17 00:00:00 2001 From: Adrian Prantl Date: Tue, 7 Mar 2017 17:50:51 +0000 Subject: Rephrase condition for better readability. NFC llvm-svn: 297168 --- llvm/lib/IR/Verifier.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib') 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 -- cgit v1.2.3