diff options
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Target/Sparc/EmitAssembly.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/Sparc/EmitAssembly.cpp b/llvm/lib/Target/Sparc/EmitAssembly.cpp index 58a60b09775..ce81248478a 100644 --- a/llvm/lib/Target/Sparc/EmitAssembly.cpp +++ b/llvm/lib/Target/Sparc/EmitAssembly.cpp @@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) { if (C == '"') { Result += "\\\""; + } else if (C == '\\') { + Result += "\\\\"; } else if (isprint(C)) { Result += C; } else { |