aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/CodeGen.cpp
diff options
context:
space:
mode:
authorNikolas Klauser <nikolasklauser@berlin.de>2025-07-16 09:42:09 +0200
committerGitHub <noreply@github.com>2025-07-16 09:42:09 +0200
commitdb2eb4d031028f9ad9b9ad6f6283f81598a404f0 (patch)
tree4a9fa3832b74c7021f79a784a1c973d24c37d758 /llvm/lib/CodeGen/CodeGen.cpp
parentf223411e2e005ecd54523801db603b54d69f3159 (diff)
downloadllvm-db2eb4d031028f9ad9b9ad6f6283f81598a404f0.zip
llvm-db2eb4d031028f9ad9b9ad6f6283f81598a404f0.tar.gz
llvm-db2eb4d031028f9ad9b9ad6f6283f81598a404f0.tar.bz2
[libc++] Simplify std::launder (#147985)
Both Clang and GCC diagnose invalid calls to `__builtin_launder`, which causes duplicate diagnostics when using `std::launder` in an invalid way. While the diagnostic message for the builtin isn't perferct, it's definitely good enough to understand the problem and adding our own diagnostic doesn't really make things any clearer. Because of that, this patch simply removes the `static_assert`s and lets the compiler handle diagnosing incorrect arguments instead. This not only simplifies our implementation, but also improves compile times a bit, since we avoid instantiating some type traits.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions