summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorStephan T. Lavavej <stl@nuwen.net>2024-03-09 02:31:58 -0800
committerGitHub <noreply@github.com>2024-03-09 02:31:58 -0800
commit1c7607e8ee6ec4ca3abce1561dd39a98d4efac96 (patch)
tree1333e6332b9056b129d2b234bea9ea1886847fe3 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent10aed27e9c8966cd11d98a61982b95607ab6e08c (diff)
[libc++][test] Fix MSVC warning C4127 in `array.cons/initialization.pass.cpp` (#79793)
This fixes MSVC warning C4127: conditional expression is constant. Testing `TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` by itself doesn't emit this warning, but the condition here is more complicated. I'm expanding the macro and mechanically simplifying the resulting code. (Yeah, this warning is often annoying, and I introduced `TEST_STD_AT_LEAST_20_OR_RUNTIME_EVALUATED` to avoid this warning elsewhere, so it's disappointing that it doesn't make the compiler happy here. If this change is undesirable, I can replace it with `ADDITIONAL_COMPILE_FLAGS(cl-style-warnings)`, but ideally I'd like to avoid having to suppress it.) --------- Co-authored-by: Louis Dionne <ldionne.2@gmail.com>
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions