Skip to content

Commit ec971f9

Browse files
committed
[SYCL] Added missing const
Signed-off-by: Ruyman Reyes <[email protected]>
1 parent 255af95 commit ec971f9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl/source/detail/program_manager/program_manager.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,8 @@ RetT *getOrBuild(KernelProgramCache &KPCache, KeyT &&CacheKey,
239239

240240
static bool isDeviceBinaryTypeSupported(const context &C,
241241
RT::PiDeviceBinaryType Format) {
242-
backend ContextBackend = detail::getSyclObjImpl(C)->getPlugin().getBackend();
242+
const backend ContextBackend =
243+
detail::getSyclObjImpl(C)->getPlugin().getBackend();
243244

244245
// The CUDA backend cannot use SPIRV
245246
if (ContextBackend == backend::cuda && Format == PI_DEVICE_BINARY_TYPE_SPIRV)

0 commit comments

Comments
 (0)