llvm-project
2ef7a607 - [clang][CodeGen] Restore BoundsSafety SanitizerHandler value to 0x19 (#243546)

Commit
1 day ago
[clang][CodeGen] Restore BoundsSafety SanitizerHandler value to 0x19 (#243546) #239729 inserted ReturnAlignmentAssumption before BoundsSafety in LIST_SANITIZER_CHECKS, shifting BoundsSafety from 0x19 to 0x1a. The handler value is the llvm.ubsantrap kind, and 0x19 is part of the -fbounds-safety trap ABI (`brk #0x5519` on arm64, `ud1l 0x19(%eax), %eax` on x86_64) that debuggers decode. Move ReturnAlignmentAssumption after BoundsSafety, add a static_assert pinning BoundsSafety to 0x19, and note that new checks must be appended at the end of the list. ReturnAlignmentAssumption becomes 0x1a, so update the tests from #239729 that check its trap kind.
Author
Parents
Loading