diff options
Diffstat (limited to 'lib/Target/CBackend/Writer.cpp')
-rw-r--r-- | lib/Target/CBackend/Writer.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Target/CBackend/Writer.cpp b/lib/Target/CBackend/Writer.cpp index 6d6f145..c15c23e 100644 --- a/lib/Target/CBackend/Writer.cpp +++ b/lib/Target/CBackend/Writer.cpp @@ -324,9 +324,7 @@ void CWriter::printConstantArray(ConstantArray *CPA) { // Do not include the last character, which we know is null for (unsigned i = 0, e = CPA->getNumOperands()-1; i != e; ++i) { - unsigned char C = (ETy == Type::SByteTy) ? - (unsigned char)cast<ConstantSInt>(CPA->getOperand(i))->getValue() : - (unsigned char)cast<ConstantUInt>(CPA->getOperand(i))->getValue(); + unsigned char C = cast<ConstantInt>(CPA->getOperand(i))->getRawValue(); // Print it out literally if it is a printable character. The only thing // to be careful about is when the last letter output was a hex escape |