diff options
author | Daniel Kuts <kutz@ispras.ru> | 2025-09-10 04:58:49 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-10 09:58:49 +0800 |
commit | ebf78588b1df062accec7aaf8a88c6430090ea18 (patch) | |
tree | c707cd89ce35e1fe098873f4aa4c9fdf577a7a62 /llvm/lib/IR/Verifier.cpp | |
parent | a5660446f006a51fe41cccaa986d0d4011507678 (diff) | |
download | llvm-ebf78588b1df062accec7aaf8a88c6430090ea18.zip llvm-ebf78588b1df062accec7aaf8a88c6430090ea18.tar.gz llvm-ebf78588b1df062accec7aaf8a88c6430090ea18.tar.bz2 |
[Verifier] Remove redundant null-check (NFC) (#157458)
Fixes #157448
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 f38871f..81a5372 100644 --- a/llvm/lib/IR/Verifier.cpp +++ b/llvm/lib/IR/Verifier.cpp @@ -3185,7 +3185,7 @@ void Verifier::visitFunction(const Function &F) { // Scope and SP could be the same MDNode and we don't want to skip // validation in that case - if (SP && ((Scope != SP) && !Seen.insert(SP).second)) + if ((Scope != SP) && !Seen.insert(SP).second) return; CheckDI(SP->describes(&F), |