diff options
author | James Y Knight <jyknight@google.com> | 2022-02-07 11:31:22 -0500 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2022-02-08 23:15:52 -0800 |
commit | f5f0bd8e3d972d040827c88adf1a9880ebcb821e (patch) | |
tree | 6d9ee6c9c7c284721a9e25c1399ffd334d778a4f /libc/.clang-tidy | |
parent | 7246d583d6017dbea8baa453e78f26e145448d6e (diff) | |
download | llvm-llvmorg-14.0.0-rc1.zip llvm-llvmorg-14.0.0-rc1.tar.gz llvm-llvmorg-14.0.0-rc1.tar.bz2 |
Revert "[Clang] Propagate guaranteed alignment for malloc and others"llvmorg-14.0.0-rc1
The above change assumed that malloc (and friends) would always
allocate memory to getNewAlign(), even for allocations which have a
smaller size. This is not actually required by spec (a 1-byte
allocation may validly have 1-byte alignment).
Some real-world malloc implementations do not provide this guarantee,
and thus this optimization is breaking programs.
Fixes #53540
This reverts commit c2297544c04764237cedc523083c7be2fb3833d4.
Differential Revision: https://reviews.llvm.org/D118804
(cherry picked from commit 9545976ff160e19805a84a06a7e59d446f9994d9)
Diffstat (limited to 'libc/.clang-tidy')
0 files changed, 0 insertions, 0 deletions