Make sure to escape \'s when they are output

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@4179 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-10-15 19:56:24 +00:00
parent a0c8e0a73d
commit d344242f2e

View File

@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) {
if (C == '"') {
Result += "\\\"";
} else if (C == '\\') {
Result += "\\\\";
} else if (isprint(C)) {
Result += C;
} else {