summaryrefslogtreecommitdiffstats
path: root/clang/lib/AST/CommentSema.cpp
diff options
context:
space:
mode:
authorPeter Collingbourne <peter@pcc.me.uk>2019-12-04 17:28:45 -0800
committerPeter Collingbourne <peter@pcc.me.uk>2019-12-10 12:09:47 -0800
commit9fbfdd2bfe42a6d0a8e680c64a968e9cfc065fd3 (patch)
tree6bb599f4de4fde58e8ed17e1ee65cd61f880cdb0 /clang/lib/AST/CommentSema.cpp
parente966416ff15178bf982430085be9ae69e5a511fa (diff)
downloadbcm5719-llvm-9fbfdd2bfe42a6d0a8e680c64a968e9cfc065fd3.tar.gz
bcm5719-llvm-9fbfdd2bfe42a6d0a8e680c64a968e9cfc065fd3.zip
scudo: Tweak how we align UserPtr. NFCI.
Instead of testing whether the pointer is aligned, just align it unconditionally and compare it to the original pointer. This moves the computation of UserPtr up to before we start preparing the header, so that the memory tagging code will be able to read the original header containing the bounds of the previous allocation before it gets potentially clobbered by the pointer realignment code. Differential Revision: https://reviews.llvm.org/D71292
Diffstat (limited to 'clang/lib/AST/CommentSema.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud