Skip to content

Commit 2fcbdc1

Browse files
authored
Really fix tysan test failing on unsupported arches (#169096)
'target' is not one of the features recognized by clang tests, and the test doesn't require X86 backend to be built. Specify the target explicitly instead. Remove duplicate `-fsanitize=type` as well.
1 parent 6ed829b commit 2fcbdc1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

clang/test/CodeGen/sanitize-type-outlined.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
1-
// REQUIRES: target=x86_64-linux-gnu
2-
3-
// RUN: %clang -S -fsanitize=type -emit-llvm -o - -fsanitize=type %s \
1+
// RUN: %clang --target=x86_64-linux-gnu -S -fsanitize=type -emit-llvm -o - %s \
42
// RUN: -fno-sanitize-type-outline-instrumentation \
53
// RUN: | FileCheck %s --check-prefixes=CHECK-NO-OUTLINE
6-
// RUN: %clang -S -fsanitize=type -emit-llvm -o - -fsanitize=type %s \
4+
// RUN: %clang --target=x86_64-linux-gnu -S -fsanitize=type -emit-llvm -o - %s \
75
// RUN: -fsanitize-type-outline-instrumentation \
86
// RUN: | FileCheck %s --check-prefixes=CHECK-OUTLINE
97

0 commit comments

Comments
 (0)