[clang] [Clang][CodeGen] Emit “trap reasons” on UBSan traps (PR #145967)
Dan Liew via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 11 11:45:05 PDT 2025
================
@@ -85,6 +85,96 @@ enum VariableTypeDescriptorKind : uint16_t {
// Miscellaneous Helper Methods
//===--------------------------------------------------------------------===//
+static llvm::StringRef GetUBSanTrapForHandler(SanitizerHandler ID) {
----------------
delcypher wrote:
Yes but with the caveat that `SanitizerHandler::BoundsSafety` will need special handling because we don't want to emit a trap reason for that one because that's the value reserved for `-fbounds-safety` that handles it's trap reasons differently from the rest of UBSan.
https://github.com/llvm/llvm-project/pull/145967
More information about the cfe-commits
mailing list