From 53d6a9db099274d258543a54a02a2744ac8d2662 Mon Sep 17 00:00:00 2001 From: Julian Oppermann Date: Thu, 14 Mar 2024 14:38:55 +0000 Subject: [PATCH] [SYCL][Fusion] Fix implicit narrowing conversion Signed-off-by: Julian Oppermann --- sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 {