forked from OSchip/llvm-project
Make sure to escape \'s when they are output
llvm-svn: 4179
This commit is contained in:
parent
7fc4b5c779
commit
aaf6ee80de
|
@ -586,6 +586,8 @@ static string getAsCString(const ConstantArray *CVA) {
|
|||
|
||||
if (C == '"') {
|
||||
Result += "\\\"";
|
||||
} else if (C == '\\') {
|
||||
Result += "\\\\";
|
||||
} else if (isprint(C)) {
|
||||
Result += C;
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue