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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3195 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-07-31 23:56:44 +00:00
parent fdd0fba013
commit fc94446777

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 << '\\'