[PATCH] D29530: [ubsan] Reduce null checking of C++ object pointers (PR27581)
Vedant Kumar via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Feb 6 16:31:57 PST 2017
vsk updated this revision to Diff 87334.
vsk edited the summary of this revision.
vsk added a comment.
@arphaman thank you for the feedback!
Per Alex's comments:
- Add test for explicit use of the 'this' pointer.
- Handle cases where the 'this' pointer may be casted (implicitly, or otherwise).
We're able to eliminate more null checks with this version of the patch. See the updated patch summary for the X86FastISel.cpp numbers.
https://reviews.llvm.org/D29530
Files:
lib/CodeGen/CGExpr.cpp
lib/CodeGen/CGExprCXX.cpp
lib/CodeGen/CodeGenFunction.h
test/CodeGen/catch-undef-behavior.c
test/CodeGen/sanitize-recover.c
test/CodeGenCXX/ubsan-suppress-null-checks.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29530.87334.patch
Type: text/x-patch
Size: 12899 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20170207/95bc05fe/attachment.bin>
More information about the cfe-commits
mailing list