[PATCH] D136805: [NFC] Make format() more amenable to format attributes

FĂ©lix Cloutier via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 31 16:14:34 PDT 2022


fcloutier added a comment.

In D136805#3887165 <https://reviews.llvm.org/D136805#3887165>, @efriedma wrote:

>> since the undefined behavior was evaluated at build time, UBSan wouldn't catch it.
>
> Can you file a bug for this?  Opportunistic constant evaluation like that shouldn't bypass ubsan.

I'm not able to reproduce the problem and my setup was janky, so I must have jumped to conclusions too fast after a tangential Godbolt test <https://godbolt.org/z/Y97b61nbx> shows that Clang will evaluate some UB at compile-time (with sanitizers disabled) where GCC won't. This example is probably happening in the back-end instead of the front-end. Sorry for the bad signal.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D136805/new/

https://reviews.llvm.org/D136805



More information about the llvm-commits mailing list