aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
diff options
context:
space:
mode:
authorA. Jiang <de34@live.cn>2025-03-13 14:02:44 +0800
committerGitHub <noreply@github.com>2025-03-13 14:02:44 +0800
commit6abe19ac587d36edf202830cbbceecfd1a55f191 (patch)
treef7bc7b2e74feef604a563099c7e4e8b40e4f1d99 /llvm/lib/CodeGen/MachineModuleSlotTracker.cpp
parent5d5f16204f17eae903d5cead75f31a41e7e960d4 (diff)
downloadllvm-6abe19ac587d36edf202830cbbceecfd1a55f191.zip
llvm-6abe19ac587d36edf202830cbbceecfd1a55f191.tar.gz
llvm-6abe19ac587d36edf202830cbbceecfd1a55f191.tar.bz2
[clang] Predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes (#127568)
This patch makes Clang predefine `_CRT_USE_BUILTIN_OFFSETOF` in MS-compatible modes. The macro can make the `offsetof` provided by MS UCRT's `<stddef.h>` to select the `__builtin_offsetof` version, so with it Clang (Clang-cl) can directly consume UCRT's `offsetof`. MSVC predefines the macro as `1` since at least VS 2017 19.14, but I think it's also OK to define it in "older" compatible modes. Fixes #59689.
Diffstat (limited to 'llvm/lib/CodeGen/MachineModuleSlotTracker.cpp')
0 files changed, 0 insertions, 0 deletions