mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-02 08:46:37 +00:00
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
This commit is contained in:
parent
fdd0fba013
commit
fc94446777
@ -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 << '\\'
|
||||
|
Loading…
Reference in New Issue
Block a user