[llvm-branch-commits] [clang] [Clang][OBT] Add __builtin_overflow_goto (PR #235046)
Justin Stitt via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Fri Nov 6 09:59:38 PST 2026
JustinStitt wrote:
@ojhunt
> Does this need a builtin? e.g
>
> ```c++
> #define try(x, label) ({ __auto_type result = x; __overflow: goto label; result; })
> ```
>
> seems like it would work?
right, they are equivalent. the builtin should allow for better (tailored) warnings now and in the future.
https://github.com/llvm/llvm-project/pull/235046
More information about the llvm-branch-commits
mailing list