[compiler-rt][ubsan][test] Fix TypeCheck/misaligned.cpp on Sparc
Two ubsan tests FAIL on Sparc: UBSan-Standalone-sparc :: TestCases/TypeCheck/misaligned.cpp UBSan-Standalone-sparcv9 :: TestCases/TypeCheck/misaligned.cpp I've reported the details in Bug 47015, but it boils down to the fact that the `s1` subtest actually incurs a fault on strict-alignment targets like Sparc which UBSan doesn't expect. This can be fixed like the `w1` subtest by compiling with `-fno-sanitize-recover=alignment`. Tested on `sparcv9-sun-solaris2.11`, `amd64-pc-solaris2.11`, and `x86_64-pc-linux-gnu`. Differential Revision: https://reviews.llvm.org/D85433
Loading
Please sign in to comment