diff options
author | Roland McGrath <mcgrathr@google.com> | 2024-10-22 22:43:32 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-10-22 22:43:32 -0700 |
commit | 100720cc4bbd165bb7f447429716c5be680b81f1 (patch) | |
tree | cbd161d25df5f62b729dfcfa66c8e7e2e83372d1 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 9afcdaa3960d58abc1f6845eecb97ee337857d9c (diff) | |
download | llvm-100720cc4bbd165bb7f447429716c5be680b81f1.zip llvm-100720cc4bbd165bb7f447429716c5be680b81f1.tar.gz llvm-100720cc4bbd165bb7f447429716c5be680b81f1.tar.bz2 |
[libc] Use `if constexpr` for compile-time conditionals (#113417)
Don't use plain `if` for things that are compile-time constants.
Instead, use `if constexpr`. This both ensures that these are
properly wired up constant expressions as intended, and prevents
warnings from the compiler about useless `if` checks that look in
the source like they're meant to do something at runtime but will
just be compiled away.
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions