[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)
Thurston Dang via cfe-commits
cfe-commits at lists.llvm.org
Thu Jul 24 15:49:59 PDT 2025
================
@@ -2595,6 +2595,16 @@ def fsanitize_undefined_trap_on_error
def fno_sanitize_undefined_trap_on_error
: Flag<["-"], "fno-sanitize-undefined-trap-on-error">, Group<f_clang_Group>,
Alias<fno_sanitize_trap_EQ>, AliasArgs<["undefined"]>;
+defm sanitize_annotate_debug_info_traps
+ : BoolFOption<
+ "sanitize-annotate-debug-info-traps",
----------------
thurstond wrote:
`-fsanitize-annotate-debug-info-traps` could be confusing: it sounds like a subset of `-fsanitize-annotate-debug-info` (i.e., the functionality of `-fsanitize-annotate-debug-info` but only for UBSan trap mode), rather than complementary.
https://github.com/llvm/llvm-project/pull/145967
More information about the cfe-commits
mailing list