diff --git a/projects/clr/rocclr/runtime/device/gpu/gpukernel.cpp b/projects/clr/rocclr/runtime/device/gpu/gpukernel.cpp index 288ae3bc61..a749740e71 100644 --- a/projects/clr/rocclr/runtime/device/gpu/gpukernel.cpp +++ b/projects/clr/rocclr/runtime/device/gpu/gpukernel.cpp @@ -3302,6 +3302,7 @@ HSAILKernel::initPrintf(const aclPrintfFmt* aclPrintf) printf_.resize(index + 1); } std::string pfmt = aclPrintf->fmtStr; + info.fmtString_.clear(); size_t pos = 0; for (size_t i = 0; i < pfmt.size(); ++i) { char symbol = pfmt[pos++];