1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx

llvm-svn: 3195
This commit is contained in:
Chris Lattner 2002-07-31 23:56:44 +00:00
parent 5fefc76529
commit 8adb533609

View File

@ -271,7 +271,7 @@ static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName,
(unsigned char)cast<ConstantSInt>(CA->getOperand(i))->getValue() :
(unsigned char)cast<ConstantUInt>(CA->getOperand(i))->getValue();
if (isprint(C) && C != '"') {
if (isprint(C) && C != '"' && C != '\\') {
Out << C;
} else {
Out << '\\'