Skip to content

Commit f577893

Browse files
Use -opaque-pointers explicitly in tests
We are still not ready to enable opaque pointers by default, so tests that use opaque pointers still need to have them enabled explicitly.
1 parent 7cf77ef commit f577893

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

clang/test/CodeGen/kmsan-param-retval.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -o - %s | \
1+
// RUN: %clang_cc1 -opaque-pointers -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -o - %s | \
22
// RUN: FileCheck %s --check-prefix=CLEAN
3-
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -o - %s | \
3+
// RUN: %clang_cc1 -opaque-pointers -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -o - %s | \
44
// RUN: FileCheck %s --check-prefixes=NOUNDEF,NOUNDEF_ONLY
5-
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -mllvm -msan-eager-checks -o - %s | \
5+
// RUN: %clang_cc1 -opaque-pointers -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -mllvm -msan-eager-checks -o - %s | \
66
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
7-
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \
7+
// RUN: %clang_cc1 -opaque-pointers -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -no-enable-noundef-analysis -fsanitize-memory-param-retval -o - %s | \
88
// RUN: FileCheck %s --check-prefixes=CLEAN
9-
// RUN: %clang_cc1 -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -fsanitize-memory-param-retval -o - %s | \
9+
// RUN: %clang_cc1 -opaque-pointers -triple x86_64-linux-gnu -S -emit-llvm -O2 -fsanitize=kernel-memory -fsanitize-memory-param-retval -o - %s | \
1010
// RUN: FileCheck %s --check-prefixes=NOUNDEF,EAGER
1111

1212
void foo();

clang/test/CodeGen/mangle-wasm-main-noproto.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=wasm32-unknown-unknown -Wno-deprecated-non-prototype | FileCheck %s
1+
// RUN: %clang_cc1 -opaque-pointers -emit-llvm %s -o - -triple=wasm32-unknown-unknown -Wno-deprecated-non-prototype | FileCheck %s
22

33
int main(argc, argv)
44
int argc;

clang/test/CodeGen/mangle-wasm-main-void.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=wasm32-unknown-unknown | FileCheck %s
1+
// RUN: %clang_cc1 -opaque-pointers -emit-llvm %s -o - -triple=wasm32-unknown-unknown | FileCheck %s
22

33
int main(void) {
44
return 0;

clang/test/CodeGen/mangle-wasm-main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %clang_cc1 -emit-llvm %s -o - -triple=wasm32-unknown-unknown | FileCheck %s
1+
// RUN: %clang_cc1 -opaque-pointers -emit-llvm %s -o - -triple=wasm32-unknown-unknown | FileCheck %s
22

33
int main(int argc, char* argv[]) {
44
return 0;

0 commit comments

Comments
 (0)