[compiler-rt] r352069 - Revert "[Sanitizers] UBSan unreachable incompatible with ASan in the presence of `noreturn` calls"

Julian Lettner via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 24 10:04:21 PST 2019


Author: yln
Date: Thu Jan 24 10:04:21 2019
New Revision: 352069

URL: http://llvm.org/viewvc/llvm-project?rev=352069&view=rev
Log:
Revert "[Sanitizers] UBSan unreachable incompatible with ASan in the presence of `noreturn` calls"

This reverts commit cea84ab93aeb079a358ab1c8aeba6d9140ef8b47.

Removed:
    compiler-rt/trunk/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c

Removed: compiler-rt/trunk/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c?rev=352068&view=auto
==============================================================================
--- compiler-rt/trunk/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c (original)
+++ compiler-rt/trunk/test/ubsan/TestCases/Misc/unreachable_asan-compatibility.c (removed)
@@ -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




More information about the llvm-commits mailing list