summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-31 23:56:44 +0000
committerChris Lattner <sabre@nondot.org>2002-07-31 23:56:44 +0000
commite5fd3867d3cf4da996167433b04a269cb273cb1e (patch)
treef8bd9208931c294cb6654953ca1084ab044f1c99 /llvm/lib
parent14fceb82445af3fa075d41006127264f70977c8b (diff)
downloadbcm5719-llvm-e5fd3867d3cf4da996167433b04a269cb273cb1e.tar.gz
bcm5719-llvm-e5fd3867d3cf4da996167433b04a269cb273cb1e.zip
Fix bug: test/Regression/Assembler/2002-07-31-SlashInString.llx
llvm-svn: 3195
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/VMCore/AsmWriter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/AsmWriter.cpp b/llvm/lib/VMCore/AsmWriter.cpp
index c12af5ba553..aeca6f7e21e 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/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 << '\\'
OpenPOWER on IntegriCloud