aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorLouis Dionne <ldionne.2@gmail.com>2025-02-05 22:32:51 -0500
committerGitHub <noreply@github.com>2025-02-05 22:32:51 -0500
commitaccfbd4cb327411ad66c0109ba1841482b871967 (patch)
tree63bb9f86eccc5fd8036a5e85b6f18cc255561f0d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent1db60556c89a2b61e2624718579bb3b96c9fedda (diff)
downloadllvm-accfbd4cb327411ad66c0109ba1841482b871967.zip
llvm-accfbd4cb327411ad66c0109ba1841482b871967.tar.gz
llvm-accfbd4cb327411ad66c0109ba1841482b871967.tar.bz2
[libc++] Replace __is_trivially_relocatable by is_trivially_copyable (#124970)
The __is_trivially_relocatable builtin has semantics that do not correspond to any current or future notion of trivial relocation. Furthermore, it currently leads to incorrect optimizations for some types on supported compilers: - Clang on Windows where types with non-trivial destructors get incorrectly optimized - AppleClang where types with non-trivial move constructors get incorrectly optimized Until there is an agreed upon and bugfree implementation of what it means to be trivially relocatable, it is safer to simply use trivially copyable instead. This doesn't leave a lot of types behind and is definitely correct.
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions