Skip to content

Commit 783d3c4

Browse files
committed
GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.
llvm-svn: 375428
1 parent 10d4b75 commit 783d3c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Scalar/GuardWidening.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -591,7 +591,7 @@ bool GuardWideningImpl::widenCondCommon(Value *Cond0, Value *Cond1,
591591
else
592592
Result = RC.getCheckInst();
593593
}
594-
594+
assert(Result && "Failed to find result value");
595595
Result->setName("wide.chk");
596596
}
597597
return true;

0 commit comments

Comments
 (0)