diff options
| author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-10-21 17:15:37 +0000 |
|---|---|---|
| committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2019-10-21 17:15:37 +0000 |
| commit | 783d3c4f0aae65483e8fa8281f84774e09b65a49 (patch) | |
| tree | 09ca4a621bf24fcb36b52f03030e0549c1ffe02f | |
| parent | 10d4b752a7fcb70d87dd3ffe7264aa5cfa8a7a76 (diff) | |
| download | bcm5719-llvm-783d3c4f0aae65483e8fa8281f84774e09b65a49.tar.gz bcm5719-llvm-783d3c4f0aae65483e8fa8281f84774e09b65a49.zip | |
GuardWidening - silence static analyzer null dereference warning with assertion. NFCI.
llvm-svn: 375428
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GuardWidening.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/GuardWidening.cpp b/llvm/lib/Transforms/Scalar/GuardWidening.cpp index e14f44bb706..2697d780956 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; |

