diff options
Diffstat (limited to 'llvm/lib/IR/AsmWriter.cpp')
-rw-r--r-- | llvm/lib/IR/AsmWriter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/IR/AsmWriter.cpp b/llvm/lib/IR/AsmWriter.cpp index 630295a9bd0..99a25a723b4 100644 --- a/llvm/lib/IR/AsmWriter.cpp +++ b/llvm/lib/IR/AsmWriter.cpp @@ -2618,8 +2618,9 @@ void AssemblyWriter::printModuleSummaryIndex() { unsigned i = 0; for (auto &ModPair : moduleVec) { Out << "^" << i++ << " = module: ("; - Out << "path: \"" << ModPair.first << "\""; - Out << ", hash: ("; + Out << "path: \""; + printEscapedString(ModPair.first, Out); + Out << "\", hash: ("; FieldSeparator FS; for (auto Hash : ModPair.second) Out << FS << Hash; |