[all-commits] [llvm/llvm-project] 67bd04: [ubsan] Don't merge non-trap handlers if -ubsan-un...
Thurston Dang via All-commits
all-commits at lists.llvm.org
Tue Dec 10 15:25:45 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 67bd04facf48206c1e3a4c2664c2240e787bd6af
https://github.com/llvm/llvm-project/commit/67bd04facf48206c1e3a4c2664c2240e787bd6af
Author: Thurston Dang <thurston at google.com>
Date: 2024-12-10 (Tue, 10 Dec 2024)
Changed paths:
M clang/lib/CodeGen/CGExpr.cpp
M clang/test/CodeGen/ubsan-trap-merge.c
M clang/test/CodeGenCXX/catch-undef-behavior.cpp
Log Message:
-----------
[ubsan] Don't merge non-trap handlers if -ubsan-unique-traps or not optimized (#119302)
UBSan handler calls are sometimes merged by the backend, which complicates debugging. Merging is currently disabled for UBSan traps if -ubsan-unique-traps is specified or if optimization is disabled. This patch applies the same policy to non-trap handler calls.
N.B. "-ubsan-unique-traps" becomes somewhat of a misnomer since it will now apply to non-trap handler calls as well as traps; nonetheless, we keep the naming for backwards compatibility.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list