Skip to content

Commit c4c5944

Browse files
committed
GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@375428 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent b0db20c commit c4c5944

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)