Skip to content

Commit 599a195

Browse files
authored
[SYCL][Fusion] Fix implicit narrowing conversion (#13028)
Silences a warning reported by GCC 12. Signed-off-by: Julian Oppermann <[email protected]>
1 parent 398aa20 commit 599a195

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,8 @@ Error SYCLKernelFusion::fuseKernel(
405405
// There is another parameter with identical value. Use the existing
406406
// mapping of that other parameter and do not add this argument to the
407407
// fused function.
408-
ParamMapping.insert({{FuncIndex, ParamIndex}, IdenticalIdx});
408+
ParamMapping.insert(
409+
{{FuncIndex, ParamIndex}, static_cast<unsigned>(IdenticalIdx)});
409410
++ParamFront;
410411
UsedArgsMask.push_back(false);
411412
} else {

0 commit comments

Comments
 (0)