diff options
author | A. Jiang <de34@live.cn> | 2024-10-26 13:46:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-26 13:46:59 +0800 |
commit | 3fc0d94ce57de2d0841e77c8fda7feef2923c4e0 (patch) | |
tree | 09d30b071f86e3cc7fa8746f07bbc1a946350fc2 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 13d6233e77982f2a596922a79365373e1466a968 (diff) | |
download | llvm-3fc0d94ce57de2d0841e77c8fda7feef2923c4e0.zip llvm-3fc0d94ce57de2d0841e77c8fda7feef2923c4e0.tar.gz llvm-3fc0d94ce57de2d0841e77c8fda7feef2923c4e0.tar.bz2 |
[libc++][test] Make macro detection more friendly to MSVC (#113633)
MSVC STL's test suite is a bit nervous about replacing non-macro-defined
identifiers with `0` (see also
https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4668?view=msvc-170).
On MSVC (and MS-compatible mode of other compilers), `long double` has
the same format (IEEE-754 binary64) as `double`, so it should be OK to
define `TEST_LONG_DOUBLE_IS_DOUBLE` when `_MSC_VER` is defined. Such
detection should be performed first.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions