Skip to content

Commit 6917afb

Browse files
Remove std::replace
1 parent 01364c4 commit 6917afb

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/AST/LocalizationFormat.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@ readYAML(llvm::yaml::IO &io, T &Seq, bool, Context &Ctx) {
101101
DiagnosticNode current;
102102
yamlize(io, current, true, Ctx);
103103
io.postflightElement(SaveInfo);
104-
std::replace(current.msg.begin(), current.msg.end(), '\n', ' ');
105104
// YAML file isn't guaranteed to have diagnostics in order of their
106105
// declaration in `.def` files, to accommodate that we need to leave
107106
// holes in diagnostic array for diagnostics which haven't yet been

0 commit comments

Comments
 (0)