diff options
author | Chris Lattner <sabre@nondot.org> | 2004-06-04 23:53:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2004-06-04 23:53:20 +0000 |
commit | 54e3e8fd37a2e28868b5faf11e4b0af243c5a364 (patch) | |
tree | a162c6cfa2aeeaa85d0186820b47da22040d0afa | |
parent | 20924bc3ddf5d11f3d18fb811d605f1b2faf3cd3 (diff) |
Squelch a warning
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/VMCore/AsmWriter.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/VMCore/AsmWriter.cpp b/lib/VMCore/AsmWriter.cpp index aec653e414..e53d29bb86 100644 --- a/lib/VMCore/AsmWriter.cpp +++ b/lib/VMCore/AsmWriter.cpp @@ -421,7 +421,8 @@ static void WriteConstantInt(std::ostream &Out, const Constant *CV, if (isString) { Out << "c\""; for (unsigned i = 0; i < CA->getNumOperands(); ++i) { - unsigned char C = cast<ConstantInt>(CA->getOperand(i))->getRawValue(); + unsigned char C = + (unsigned char)cast<ConstantInt>(CA->getOperand(i))->getRawValue(); if (isprint(C) && C != '"' && C != '\\') { Out << C; |