Skip to content

Commit cb03a1b

Browse files
[SYCL] Fix compile time info initialization (#20003)
1 parent e26848d commit cb03a1b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/device_kernel_info.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ inline constexpr bool operator==(const CompileTimeKernelInfoTy &LHS,
6161

6262
void DeviceKernelInfo::setCompileTimeInfoIfNeeded(
6363
const CompileTimeKernelInfoTy &Info) {
64-
if (isCompileTimeInfoSet())
64+
if (!isCompileTimeInfoSet())
6565
CompileTimeKernelInfoTy::operator=(Info);
6666
assert(isCompileTimeInfoSet());
6767
assert(Info == *this);

0 commit comments

Comments
 (0)