[Sanitizer] Fix failing sanitizer tests
authorJulian Lettner <julian.lettner@apple.com>
Sat, 6 Feb 2021 05:31:22 +0000 (21:31 -0800)
committerJulian Lettner <julian.lettner@apple.com>
Mon, 8 Feb 2021 17:56:32 +0000 (09:56 -0800)
commit04af72c5423eb5ff7c0deba2d08cb46d583bb9d4
tree6038b976bf74f98b8e04c17d7b7dd6c4714bbb30
parentcc2c45dc54b324727a00be7218f387fcb53dd6c7
[Sanitizer] Fix failing sanitizer tests

The new pass manager was enabled by default [1].

The commit message states the following relevant differences:
  * The inliner works slightly differently
  * -O1 does some amount of inlining

These tests are affected because they specify `-O1` and then check the
reported stack trace.

[1] https://reviews.llvm.org/D95380

Differential Revision: https://reviews.llvm.org/D96198
compiler-rt/test/tsan/blacklist2.cpp
compiler-rt/test/tsan/free_race.c
compiler-rt/test/tsan/longjmp3.cpp
compiler-rt/test/tsan/longjmp4.cpp
compiler-rt/test/tsan/race_on_heap.cpp
compiler-rt/test/tsan/race_top_suppression.cpp
compiler-rt/test/tsan/simple_stack.c
compiler-rt/test/tsan/sleep_sync.cpp
compiler-rt/test/ubsan/TestCases/Misc/missing_return.cpp