Skip to content

Commit ad32e03

Browse files
[SYCL] Fix compile time info initialization
1 parent ce54584 commit ad32e03

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
@@ -57,7 +57,7 @@ inline constexpr bool operator==(const CompileTimeKernelInfoTy &LHS,
5757

5858
void DeviceKernelInfo::setCompileTimeInfoIfNeeded(
5959
const CompileTimeKernelInfoTy &Info) {
60-
if (isCompileTimeInfoSet())
60+
if (!isCompileTimeInfoSet())
6161
CompileTimeKernelInfoTy::operator=(Info);
6262
assert(isCompileTimeInfoSet());
6363
assert(Info == *this);

0 commit comments

Comments
 (0)