Skip to content

Commit 8ecbd8a

Browse files
committed
[llvm] Fix potential null dereference in IR/Verifier
1 parent 6c0f7a5 commit 8ecbd8a

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
@@ -3188,7 +3188,7 @@ void Verifier::visitFunction(const Function &F) {
31883188
if (SP && ((Scope != SP) && !Seen.insert(SP).second))
31893189
return;
31903190

3191-
CheckDI(SP->describes(&F),
3191+
CheckDI(SP && 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)