Skip to content

Commit bc7001d

Browse files
Update sycl/source/detail/program_impl.cpp
Co-authored-by: Romanov Vlad <[email protected]>
1 parent aed25f2 commit bc7001d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sycl/source/detail/program_impl.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ void program_impl::flush_spec_constants(const RTDeviceBinaryImage &Img,
495495
assert(SC.isSet() && "uninitialized spec constant");
496496
pi_device_binary_property SCProp = *SCIt;
497497
pi_uint32 ID = pi::DeviceBinaryProperty(SCProp).asUint32();
498-
NativePrg = NativePrg ? NativePrg : pi::cast<pi::PiProgram>(get());
498+
NativePrg = NativePrg ? NativePrg : getHandleRef();
499499
Ctx->getPlugin().call<PiApiKind::piextProgramSetSpecializationConstant>(
500500
NativePrg, ID, SC.getSize(), SC.getValuePtr());
501501
}

0 commit comments

Comments
 (0)