aboutsummaryrefslogtreecommitdiff
path: root/lld/MachO/Dwarf.cpp
diff options
context:
space:
mode:
authorJames Y Knight <jyknight@google.com>2022-02-07 11:31:22 -0500
committerTom Stellard <tstellar@redhat.com>2022-02-08 23:15:52 -0800
commitf5f0bd8e3d972d040827c88adf1a9880ebcb821e (patch)
tree6d9ee6c9c7c284721a9e25c1399ffd334d778a4f /lld/MachO/Dwarf.cpp
parent7246d583d6017dbea8baa453e78f26e145448d6e (diff)
downloadllvm-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 'lld/MachO/Dwarf.cpp')
0 files changed, 0 insertions, 0 deletions