diff options
author | Chris Lattner <sabre@nondot.org> | 2002-07-31 23:56:44 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-07-31 23:56:44 +0000 |
commit | fc94446777fcdff03fdc09539bab25200936b43e (patch) | |
tree | b93324c41e624487d2278b2d09d8aa048b859bac /lib | |
parent | fdd0fba01322dfe46366d5ababff85babf24ec2c (diff) | |
download | external_llvm-fc94446777fcdff03fdc09539bab25200936b43e.zip external_llvm-fc94446777fcdff03fdc09539bab25200936b43e.tar.gz external_llvm-fc94446777fcdff03fdc09539bab25200936b43e.tar.bz2 |
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
Diffstat (limited to 'lib')
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c12af5b..aeca6f7 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -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 << '\\' |