================ @@ -96,3 +96,35 @@ // RUN: not %clang --target=x86_64-linux-gnu -fsanitize=kcfi,function %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KCFI-FUNCTION // CHECK-KCFI-FUNCTION: error: invalid argument '-fsanitize=kcfi' not allowed with '-fsanitize=function' + +// -fsanitize-kcfi-arity is forwarded to cc1 when KCFI is enabled. +// RUN: %clang --target=x86_64-linux-gnu -fsanitize=kcfi -fsanitize-kcfi-arity %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-KCFI-ARITY +// CHECK-KCFI-ARITY: "-fsanitize-kcfi-arity" + +// Without -fsanitize=kcfi, -fsanitize-kcfi-arity is unused. +// RUN: %clang --target=x86_64-linux-gnu -fsanitize-kcfi-arity -c %s -o /dev/null 2>&1 | FileCheck %s --check-prefix=CHECK-KCFI-ARITY-UNUSED ---------------- kees wrote:
Argh. Fixing now with `-fsyntax-only` and doing a non-x86 build to verify... https://github.com/llvm/llvm-project/pull/214827 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
