From 8dffe9c8e6434c427aee98039989f64293ce4684 Mon Sep 17 00:00:00 2001 From: Jason Tang Date: Mon, 1 Feb 2021 16:06:10 -0500 Subject: [PATCH] SWDEV-269880 - Fix luxmark 3.1 segfaults To workaround a bug in std::regex() implementation. Change-Id: I4ea2b40e0b74ee1ee79d31283937e43d361d37c2 [ROCm/clr commit: 4791447370b90b0c4ec1c946aaac7cbd394c7951] --- projects/clr/rocclr/compiler/lib/utils/options.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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