summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-07-25 20:32:37 +0000
committerChris Lattner <sabre@nondot.org>2002-07-25 20:32:37 +0000
commit5fa3a4429fbef91a4767f93973fc63ced5ed33d1 (patch)
treebe7ed6ec86f1af4840094b1ff250c481a8dd2d4b
parent03e0499931f7368918a868d0647d01ea2c04cac5 (diff)
downloadbcm5719-llvm-5fa3a4429fbef91a4767f93973fc63ced5ed33d1.tar.gz
bcm5719-llvm-5fa3a4429fbef91a4767f93973fc63ced5ed33d1.zip
Fix bug: test/Regression/Assembler/2002-07-25-QuoteInString.llx
llvm-svn: 3099
-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 7aefe32a22b..091cda85ca7 100644
--- a/llvm/lib/VMCore/AsmWriter.cpp
+++ b/llvm/lib/VMCore/AsmWriter.cpp
@@ -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 << '\\'
OpenPOWER on IntegriCloud