Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx
authorChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 23:56:44 +0000 (23:56 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 31 Jul 2002 23:56:44 +0000 (23:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3195 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index c12af5ba553c7f4db18964c92007d2a0101a11b7..aeca6f7e21eacc883b2fe0a020bcef58feacbadd 100644 (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 << '\\'