JustinStitt wrote: > I assume you are going to change fronted to avoid compiler abusing these UBs?
Well, like you said, none of this is really undefined behavior and isn't getting optimized away. The exception being `if ( a + b < a )` which can definitely have some unexpected results with higher optimization levels. Users can opt into `-fno-strict-overflow` (like the Linux Kernel). I don't think `-fno-sanitize-overflow-idioms` should imply `-fno-strict-overflow`. It's up to the user there, right? https://github.com/llvm/llvm-project/pull/100272 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits