aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorChen Li <meloli87@gmail.com>2015-09-14 18:10:43 +0000
committerChen Li <meloli87@gmail.com>2015-09-14 18:10:43 +0000
commit0d043b52eb792752165c58ea0fc6e49d1245f5f7 (patch)
tree807b5a0115de5dd50e9dd80570ca6e8fa4f6d2ce /clang/lib/CodeGen/CodeGenModule.cpp
parentaff29d303120c94d9bde9ca992783eb7cb7fbedb (diff)
downloadllvm-0d043b52eb792752165c58ea0fc6e49d1245f5f7.zip
llvm-0d043b52eb792752165c58ea0fc6e49d1245f5f7.tar.gz
llvm-0d043b52eb792752165c58ea0fc6e49d1245f5f7.tar.bz2
[InstCombineCalls] Use isKnownNonNullAt() to check nullness of passing arguments at callsite
Summary: This patch replaces isKnownNonNull() with isKnownNonNullAt() when checking nullness of passing arguments at callsite. In this way it can handle cases where the argument does not have nonnull attribute but has a dominating null check from the CFG. It also adds assertions in isKnownNonNull() and isKnownNonNullFromDominatingCondition() to make sure the value checked is pointer type (as defined in LLVM document). These assertions might trip failures in things which are not covered under llvm/test, but fixes should be pretty obvious. Reviewers: reames Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D12779 llvm-svn: 247587
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions