[sanitizer][sancov] Use pc-1 for s390x
authorFangrui Song <i@maskray.me>
Wed, 23 Feb 2022 21:35:22 +0000 (13:35 -0800)
committerFangrui Song <i@maskray.me>
Wed, 23 Feb 2022 21:35:22 +0000 (13:35 -0800)
commit632ea6929d5cb5b3c4ff1b44df5d4e075d9f1dda
treedc6da23ab1c29dd3e2b6262991ac156fd7018ceb
parent4cb24ef90a691489f22a36976a1b33acd65901fa
[sanitizer][sancov] Use pc-1 for s390x

The stack trace addresses may be odd (normally addresses should be even), but
seems a good compromise when the instruction length (2,4,6) cannot be detected
easily.

Reviewed By: uweigand

Differential Revision: https://reviews.llvm.org/D120432
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.cpp
compiler-rt/lib/sanitizer_common/sanitizer_stacktrace.h
compiler-rt/test/tsan/test.h
llvm/tools/sancov/sancov.cpp