[clang] [lldb] [Clang] Introduce OverflowBehaviorType for fine-grained overflow control (PR #148914)
Justin Stitt via cfe-commits
cfe-commits at lists.llvm.org
Wed Oct 15 14:26:27 PDT 2025
JustinStitt wrote:
> Right, I think `c` is what is already happening with `b`: a cast to `u16` tells us nothing about the desired OB. We need to say `u16 __ob_trap` ("I want to trap") or `u16 __ob_wrap` ("I want wrap-around on overflow").
OK, that sounds fine to me. It addresses the issue of developers slapping a random explicit cast just to silence warnings. Following your approach, they must specify overflow behavior.
https://github.com/llvm/llvm-project/pull/148914
More information about the cfe-commits
mailing list