[libcxx-commits] [libcxx] [libc++][hardening] Always enable all checks during constant evaluation (PR #107713)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Sep 13 10:32:00 PDT 2024


philnik777 wrote:

IMO one of the most useful perks of constant evaluating this is that you can be sure there is no UB in your code. Adding compile time only assertions that catch UB in the library seems like a natural extension of this utility. Of course we have a few places where we throw that utility away because we know that we're doing stuff that's technically UB but compilers don't optimize on, but these are relatively rare and quite obvious.

https://github.com/llvm/llvm-project/pull/107713


More information about the libcxx-commits mailing list