diff --git a/projects/clr/rocclr/compiler/lib/utils/options.cpp b/projects/clr/rocclr/compiler/lib/utils/options.cpp index 6ca837afae..b90bb1aa68 100644 --- a/projects/clr/rocclr/compiler/lib/utils/options.cpp +++ b/projects/clr/rocclr/compiler/lib/utils/options.cpp @@ -1555,7 +1555,7 @@ Options::setDumpFileName(const char* val) std::stringstream prefix; // Replace characters in the file name that are not legal with '_'. prefix << dumpPrefix << "_" << buildNo << "_" - << std::regex_replace(val, std::regex("[:]"), "_"); + << std::regex_replace(val, std::regex(":"), "_"); dumpFileRoot = prefix.str(); // Check whether the length of path meets the system limits