aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulian Lettner <jlettner@apple.com>2019-01-24 18:04:21 +0000
committerJulian Lettner <jlettner@apple.com>2019-01-24 18:04:21 +0000
commit26b7bd710a0177e341a877fc7a0f648a4b606060 (patch)
tree1e22c1edce39499ef8fc23830751b254f0ec7082
parentd6524c124d8b3cabdeb3046224f30a263d4eab9f (diff)
Revert "[Sanitizers] UBSan unreachable incompatible with ASan in the presence of `noreturn` calls"
This reverts commit cea84ab93aeb079a358ab1c8aeba6d9140ef8b47. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@352069 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c b/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c
deleted file mode 100644
index eaf7a6e63..000000000
--- a/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c
+++ /dev/null
@@ -1,16 +0,0 @@
-// Ensure compatiblity of UBSan unreachable with ASan in the presence of
-// noreturn functions
-// RUN: %clang -O2 -fPIC -fsanitize=address,unreachable %s -emit-llvm -S -o - | FileCheck %s
-// REQUIRES: ubsan-asan, deactivate
-
-void bar(void) __attribute__((noreturn));
-
-void foo() {
- bar();
-}
-// CHECK-LABEL: define void @foo()
-// CHECK: call void @__asan_handle_no_return
-// CHECK-NEXT: call void @bar
-// CHECK-NEXT: call void @__asan_handle_no_return
-// CHECK-NEXT: call void @__ubsan_handle_builtin_unreachable
-// CHECK-NEXT: unreachable