🍒 [UBSan] make ubsantrap `inaccessiblemem: write` (#156100)
This is consistent with the normal trap. This will allow more optimizations to work on it (e.g. it can be reordered more freely).
This will also allow https://github.com/llvm/llvm-project/pull/155901 to avoid hardcoding the ubsan trap.
(cherry picked from commit c021cac034fa9eb7279520a4a622cad418c9a265)
rdar://168018994 this follows cherry-pick of companion PR https://github.com/llvm/llvm-project/pull/12059
@swift-ci test linux
@swift-ci test windows
@swift-ci test macOS
@swift-ci test llvm
@swift-ci test windows
@swift-ci test macOS
Please make sure the llvm tests pass too
Failed tests are all BoundsSafety, I suspect they are irrelevant.
@swift-ci test macOS
Failed tests are all
BoundsSafety, I suspect they are irrelevant.
hmm... my local test shows that they are introduced by this PR?
@swift-ci test macOS
I will be updating the BoundsSafety tests.
@swift-ci test llvm
@swift-ci test macOS
@swift-ci test linux
@swift-ci test windows
@swift-ci test llvm
@swift-ci test llvm linux
@swift-ci test macOS
llvm linux test failure is unrelated -- Clang :: Modules/pch-config-macros.c -- waiting for macOS swift test.