[clang] c10615e - [SYCL] Fix test to conform to SYCL2020
Elizabeth Andrews via cfe-commits
cfe-commits at lists.llvm.org
Thu Jan 26 13:54:19 PST 2023
Author: Elizabeth Andrews
Date: 2023-01-26T13:52:48-08:00
New Revision: c10615e4a94fc8dec65a48a6eb8f7efccc3fb1fc
URL: https://github.com/llvm/llvm-project/commit/c10615e4a94fc8dec65a48a6eb8f7efccc3fb1fc
DIFF: https://github.com/llvm/llvm-project/commit/c10615e4a94fc8dec65a48a6eb8f7efccc3fb1fc.diff
LOG: [SYCL] Fix test to conform to SYCL2020
Added:
Modified:
clang/test/SemaSYCL/bf16.cpp
Removed:
################################################################################
diff --git a/clang/test/SemaSYCL/bf16.cpp b/clang/test/SemaSYCL/bf16.cpp
index 06ae263fbcfe5..d1b4776f34044 100644
--- a/clang/test/SemaSYCL/bf16.cpp
+++ b/clang/test/SemaSYCL/bf16.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple spir64 -aux-triple x86_64-unknown-linux-gnu -fsycl-is-device -verify -fsyntax-only %s
template <typename Name, typename Func>
-__attribute__((sycl_kernel)) void kernel(Func kernelFunc) {
+__attribute__((sycl_kernel)) void kernel(const Func &kernelFunc) {
kernelFunc(); // expected-note {{called by 'kernel}}
}
More information about the cfe-commits
mailing list