diff --git a/sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp b/sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp index a22a694f91afb..39fca6423f41c 100644 --- a/sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp +++ b/sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp @@ -405,7 +405,8 @@ Error SYCLKernelFusion::fuseKernel( // There is another parameter with identical value. Use the existing // mapping of that other parameter and do not add this argument to the // fused function. - ParamMapping.insert({{FuncIndex, ParamIndex}, IdenticalIdx}); + ParamMapping.insert( + {{FuncIndex, ParamIndex}, static_cast(IdenticalIdx)}); ++ParamFront; UsedArgsMask.push_back(false); } else {