diff options
author | Simon Dardis <simon.dardis@imgtec.com> | 2017-08-03 09:38:46 +0000 |
---|---|---|
committer | Simon Dardis <simon.dardis@imgtec.com> | 2017-08-03 09:38:46 +0000 |
commit | 51296593a877d819477b64a0046c443d6c66fba8 (patch) | |
tree | 33ac1d91d2095b69d9de671f9195b74c678bde83 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | cd50b5cb89e846a9fd6bcc4f544768b97b1429a1 (diff) | |
download | bcm5719-llvm-51296593a877d819477b64a0046c443d6c66fba8.tar.gz bcm5719-llvm-51296593a877d819477b64a0046c443d6c66fba8.zip |
[SelectionDAG] Resolve PR33978.
rL306209 taught SelectionDAG how to add the dereferenceable flag when
expanding memcpy and memmove. The fix however contained a nit where
the offset + size was constructed as an APInt of PointerSize rather
than PointerSizeInBits.
This lead to isDereferenceableAndAlignedPointer() get truncated values or
values which would be sign extended within that function leading to
incorrect results.
Thanks to Alex Crichton for reporting the issue!
This resolves PR33978.
Reviewers: inouehrs
Differential Revision: https://reviews.llvm.org/D36236
llvm-svn: 309930
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions