Skip to content

Commit 3ea9bd1

Browse files
authored
Remove redunand checks for NULL
1 parent 8ecbd8a commit 3ea9bd1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/IR/Verifier.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3185,10 +3185,10 @@ 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

3191-
CheckDI(SP && SP->describes(&F),
3191+
CheckDI(SP->describes(&F),
31923192
"!dbg attachment points at wrong subprogram for function", N, &F,
31933193
&I, DL, Scope, SP);
31943194
};

0 commit comments

Comments
 (0)