[compiler-rt] 39ccd57 - [ubsan][test] Remove --check-prefix=UNIQUE for x86_64-apple from e215996a2932ed7c472f4e94dc4345b30fd0c373
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Tue May 23 06:59:08 PDT 2023
Author: Fangrui Song
Date: 2023-05-23T06:59:01-07:00
New Revision: 39ccd5730267373c57ededecac129a59c9523899
URL: https://github.com/llvm/llvm-project/commit/39ccd5730267373c57ededecac129a59c9523899
DIFF: https://github.com/llvm/llvm-project/commit/39ccd5730267373c57ededecac129a59c9523899.diff
LOG: [ubsan][test] Remove --check-prefix=UNIQUE for x86_64-apple from e215996a2932ed7c472f4e94dc4345b30fd0c373
After switching to use a type hash instead of possibly-non-unique typeinfo
objects, we no longer have unique/non-unique distinction.
Added:
Modified:
compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp
Removed:
################################################################################
diff --git a/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp b/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp
index 2f7db994364ca..965e865a26abd 100644
--- a/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp
+++ b/compiler-rt/test/ubsan/TestCases/TypeCheck/Function/function.cpp
@@ -1,22 +1,8 @@
-// RUN: %clangxx -DDETERMINE_UNIQUE %s -o %t-unique
// RUN: %clangxx -std=c++17 -fsanitize=function %s -O3 -g -DSHARED_LIB -fPIC -shared -o %t-so.so
// RUN: %clangxx -std=c++17 -fsanitize=function %s -O3 -g -o %t %t-so.so
-// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK $(%run %t-unique UNIQUE)
+// RUN: %run %t 2>&1 | FileCheck %s --check-prefix=CHECK
// Verify that we can disable symbolization if needed:
-// RUN: %env_ubsan_opts=symbolize=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOSYM $(%run %t-unique NOSYM-UNIQUE)
-
-#ifdef DETERMINE_UNIQUE
-
-#include <iostream>
-
-#include "../../../../../lib/sanitizer_common/sanitizer_platform.h"
-
-int main(int, char **argv) {
- if (!SANITIZER_NON_UNIQUE_TYPEINFO)
- std::cout << "--check-prefix=" << argv[1];
-}
-
-#else
+// RUN: %env_ubsan_opts=symbolize=0 %run %t 2>&1 | FileCheck %s --check-prefix=NOSYM
struct Shared {};
using FnShared = void (*)(Shared *);
@@ -129,5 +115,3 @@ int main(void) {
}
#endif
-
-#endif
More information about the llvm-commits
mailing list