diff options
author | Alexander Richardson <alexrichardson@google.com> | 2024-03-08 21:22:57 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-08 21:22:57 -0800 |
commit | c58c8278f98c189d149d5f062b8d4f56efcada90 (patch) | |
tree | a2b86415065ae65f0da8672f81c3c4af904301f7 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 0b9ce71a256d86c08f2b52ad2e337395b8f54b41 (diff) | |
download | llvm-c58c8278f98c189d149d5f062b8d4f56efcada90.zip llvm-c58c8278f98c189d149d5f062b8d4f56efcada90.tar.gz llvm-c58c8278f98c189d149d5f062b8d4f56efcada90.tar.bz2 |
[compiler-rt] Simplify and rename of operator_new_size_type
We can rely on the compiler-provided macro __SIZE_TYPE__ for all
non-MSVC compilers and fall back to `uptr` otherwise.
I verified via https://godbolt.org/z/MW9KMjv5f that this works for MSVC
as well as GCC 4.5 Clang 3.0, so that should cover supported compilers.
While touching this also rename operator_new_size_type to usize which
makes it more obvious that this is the equivalent to size_t within
the sanitizers runtime (which I plan to use in follow-up changes).
Reviewed By: vitalybuka
Pull Request: https://github.com/llvm/llvm-project/pull/83912
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions