From ad32e035114d4879146bf48686df2aa721c4a6d2 Mon Sep 17 00:00:00 2001 From: Sergey Semenov Date: Mon, 8 Sep 2025 07:09:34 -0700 Subject: [PATCH] [SYCL] Fix compile time info initialization --- sycl/source/detail/device_kernel_info.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sycl/source/detail/device_kernel_info.cpp b/sycl/source/detail/device_kernel_info.cpp index 30f2db1ec40bc..29b7b9956cd80 100644 --- a/sycl/source/detail/device_kernel_info.cpp +++ b/sycl/source/detail/device_kernel_info.cpp @@ -57,7 +57,7 @@ inline constexpr bool operator==(const CompileTimeKernelInfoTy &LHS, void DeviceKernelInfo::setCompileTimeInfoIfNeeded( const CompileTimeKernelInfoTy &Info) { - if (isCompileTimeInfoSet()) + if (!isCompileTimeInfoSet()) CompileTimeKernelInfoTy::operator=(Info); assert(isCompileTimeInfoSet()); assert(Info == *this);