mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-17 16:46:50 +00:00
Remove illegal, unsupported escapes. This fixes program: Ptrdist-bc
llvm-svn: 7552
This commit is contained in:
parent
96704b97ca
commit
52f4e7d96d
@ -296,13 +296,11 @@ static std::string getAsCString(const ConstantArray *CVA) {
|
||||
Result += C;
|
||||
} else {
|
||||
switch(C) {
|
||||
case '\a': Result += "\\a"; break;
|
||||
case '\b': Result += "\\b"; break;
|
||||
case '\f': Result += "\\f"; break;
|
||||
case '\n': Result += "\\n"; break;
|
||||
case '\r': Result += "\\r"; break;
|
||||
case '\t': Result += "\\t"; break;
|
||||
case '\v': Result += "\\v"; break;
|
||||
default:
|
||||
Result += '\\';
|
||||
Result += toOctal(C >> 6);
|
||||
|
Loading…
Reference in New Issue
Block a user