[PATCH] D22528: [libcxxabi] When catching an exception of type nullptr_t with a handler of pointer-to-member type, produce a null value of the right type
Richard Smith via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 19 12:53:33 PDT 2016
rsmith created this revision.
rsmith added reviewers: EricWF, mclow.lists.
rsmith added a subscriber: cfe-commits.
rsmith set the repository for this revision to rL LLVM.
This fixes a bug where throwing an exception of type nullptr_t and catching it as a pointer-to-member would not guarantee to produce a null value in the catch handler. The fix is pretty simple: we statically allocate a constant null pointer-to-data-member representation and a constant null pointer-to-member-function representation, and produce the address of the relevant value as the adjusted pointer for the exception.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 9719 bytes
Desc: not available
More information about the cfe-commits