From 54d10c87157820351827a2f9cff6060b7e69d09d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 25 Jul 2002 20:32:37 +0000 Subject: [PATCH] Fix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3099 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/AsmWriter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index 7aefe32a22b..091cda85ca7 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -269,7 +269,7 @@ static void WriteConstantInt(ostream &Out, const Constant *CV, bool PrintName, (unsigned char)cast(CA->getOperand(i))->getValue() : (unsigned char)cast(CA->getOperand(i))->getValue(); - if (isprint(C)) { + if (isprint(C) && C != '"') { Out << C; } else { Out << '\\'