diff options
author | Hans Wennborg <hans@hanshq.net> | 2017-08-25 20:27:58 +0000 |
---|---|---|
committer | Hans Wennborg <hans@hanshq.net> | 2017-08-25 20:27:58 +0000 |
commit | b47c628b1c5c88a4db60d2dda6411a2365a45dd1 (patch) | |
tree | 2af2d5c20ef43f57c69ef4adc8da28cbc6553ebf /lib/Format | |
parent | 9fe12dfae3fad93aec4ba283d5099ee69e7fc164 (diff) |
Merging r311695:
------------------------------------------------------------------------
r311695 | rsmith | 2017-08-24 13:10:33 -0700 (Thu, 24 Aug 2017) | 9 lines
[ubsan] PR34266: When sanitizing the 'this' value for a member function that happens to be a lambda call operator, use the lambda's 'this' pointer, not the captured enclosing 'this' pointer (if any).
Do not sanitize the 'this' pointer of a member call operator for a lambda with
no capture-default, since that call operator can legitimately be called with a
null this pointer from the static invoker function. Any actual call with a null
this pointer should still be caught in the caller (if it is being sanitized).
This reinstates r311589 (reverted in r311680) with the above fix.
------------------------------------------------------------------------
git-svn-id: https://llvm.org/svn/llvm-project/cfe/branches/release_50@311799 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Format')
0 files changed, 0 insertions, 0 deletions