From: Simon Pilgrim Date: Mon, 21 Oct 2019 17:15:37 +0000 (+0000) Subject: GuardWidening - silence static analyzer null dereference warning with assertion.... X-Git-Tag: llvmorg-11-init~6028 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=783d3c4f0aae65483e8fa8281f84774e09b65a49;p=platform%2Fupstream%2Fllvm.git GuardWidening - silence static analyzer null dereference warning with assertion. NFCI. llvm-svn: 375428 --- diff --git a/llvm/lib/Transforms/Scalar/GuardWidening.cpp b/llvm/lib/Transforms/Scalar/GuardWidening.cpp index e14f44bb..2697d78 100644 --- a/llvm/lib/Transforms/Scalar/GuardWidening.cpp +++ b/llvm/lib/Transforms/Scalar/GuardWidening.cpp @@ -591,7 +591,7 @@ bool GuardWideningImpl::widenCondCommon(Value *Cond0, Value *Cond1, else Result = RC.getCheckInst(); } - + assert(Result && "Failed to find result value"); Result->setName("wide.chk"); } return true;