[clang] [clang][driver] Expose a frontend option for trap-unreachable (PR #174894)
Paul Kirth via cfe-commits
cfe-commits at lists.llvm.org
Mon Jan 12 18:16:32 PST 2026
================
@@ -4685,6 +4685,16 @@ defm strict_return : BoolFOption<"strict-return",
" of a non-void function as unreachable">,
PosFlag<SetTrue>>;
+def ftrap_unreachable
+ : Joined<["-"], "ftrap-unreachable=">,
+ Group<f_Group>,
+ Visibility<[ClangOption, CC1Option]>,
+ HelpText<"Treat unreachable instruction as traps.">,
----------------
ilovepi wrote:
Thanks for pointing that out. I'll come up w/ some more accurate description tomorrow.
https://github.com/llvm/llvm-project/pull/174894
More information about the cfe-commits
mailing list