Skip to content

Commit

Permalink
[SYCL][Fusion] Fix implicit narrowing conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Julian Oppermann <julian.oppermann@codeplay.com>
  • Loading branch information
jopperm committed Mar 14, 2024
1 parent 38bb281 commit 53d6a9d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sycl-fusion/passes/kernel-fusion/SYCLKernelFusion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<unsigned>(IdenticalIdx)});
++ParamFront;
UsedArgsMask.push_back(false);
} else {
Expand Down

0 comments on commit 53d6a9d

Please sign in to comment.