Skip to content

Commit ebf7858

Browse files
authored
[Verifier] Remove redundant null-check (NFC) (#157458)
Fixes #157448
1 parent a566044 commit ebf7858

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3185,7 +3185,7 @@ void Verifier::visitFunction(const Function &F) {
31853185

31863186
// Scope and SP could be the same MDNode and we don't want to skip
31873187
// validation in that case
3188-
if (SP && ((Scope != SP) && !Seen.insert(SP).second))
3188+
if ((Scope != SP) && !Seen.insert(SP).second)
31893189
return;
31903190

31913191
CheckDI(SP->describes(&F),

0 commit comments

Comments
 (0)