[llvm] r375428 - GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 21 10:15:38 PDT 2019
Author: rksimon
Date: Mon Oct 21 10:15:37 2019
New Revision: 375428
URL: http://llvm.org/viewvc/llvm-project?rev=375428&view=rev
Log:
GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.
Modified:
llvm/trunk/lib/Transforms/Scalar/GuardWidening.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GuardWidening.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GuardWidening.cpp?rev=375428&r1=375427&r2=375428&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GuardWidening.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GuardWidening.cpp Mon Oct 21 10:15:37 2019
@@ -591,7 +591,7 @@ bool GuardWideningImpl::widenCondCommon(
else
Result = RC.getCheckInst();
}
-
+ assert(Result && "Failed to find result value");
Result->setName("wide.chk");
}
return true;
More information about the llvm-commits
mailing list