From: Chris Lattner Date: Wed, 31 Jul 2002 23:56:44 +0000 (+0000) Subject: Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=fc94446777fcdff03fdc09539bab25200936b43e;p=oota-llvm.git 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 --- diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index c12af5ba553..aeca6f7e21e 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(CA->getOperand(i))->getValue() : (unsigned char)cast(CA->getOperand(i))->getValue(); - if (isprint(C) && C != '"') { + if (isprint(C) && C != '"' && C != '\\') { Out << C; } else { Out << '\\'