Fix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx
authorChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:32:37 +0000 (20:32 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 25 Jul 2002 20:32:37 +0000 (20:32 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3099 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/AsmWriter.cpp

index 7aefe32a22b8dfa99beeff5689549bacbde09e97..091cda85ca7781e50c79e8073936cc847a544a71 100644 (file)
@@ -269,7 +269,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)) {
+        if (isprint(C) && C != '"') {
           Out << C;
         } else {
           Out << '\\'