mirror of
https://github.com/intel/llvm.git
synced 2026-01-26 12:26:52 +08:00
Fix TestBreakpointSerialization on windows
The test exposed a bug in the StructuredData Serialization code, which did not escape the backslash properly. This manifested itself as windows breakpoint serialization roundtrip test not succeeding (as windows paths included backslashes). llvm-svn: 282167
This commit is contained in:
@@ -264,7 +264,7 @@ void StructuredData::String::Dump(Stream &s, bool pretty_print) const {
|
||||
const size_t strsize = m_value.size();
|
||||
for (size_t i = 0; i < strsize; ++i) {
|
||||
char ch = m_value[i];
|
||||
if (ch == '"')
|
||||
if (ch == '"' || ch == '\\')
|
||||
quoted.push_back('\\');
|
||||
quoted.push_back(ch);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user