https://github.com/efriedma-quic commented:
CodeGen should not produce errors for overflows which do not occur at compile-time according to the language semantics. This is happening at runtime, so we need to just eat the error; we can emit an unconditional call to the ubsan error handler. We are not allowed to reject valid programs. Ideally Sema should produce a warning so users aren't caught off-guard. https://github.com/llvm/llvm-project/pull/115791 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits