diff --git a/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp b/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp --- a/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp +++ b/mlir/tools/mlir-cuda-runner/mlir-cuda-runner.cpp @@ -83,10 +83,10 @@ RETURN_ON_CUDA_ERROR( cuLinkAddData(linkState, CUjitInputType::CU_JIT_INPUT_PTX, const_cast(static_cast(ptx.c_str())), - ptx.length(), name.data(), /* kernel name */ - 0, /* number of jit options */ - nullptr, /* jit options */ - nullptr /* jit option values */ + ptx.length(), name.str().data(), /* kernel name */ + 0, /* number of jit options */ + nullptr, /* jit options */ + nullptr /* jit option values */ ), "cuLinkAddData");