projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
20924bc
)
Squelch a warning
author
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 23:53:20 +0000
(23:53 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 4 Jun 2004 23:53:20 +0000
(23:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14032
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/VMCore/AsmWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/VMCore/AsmWriter.cpp
b/lib/VMCore/AsmWriter.cpp
index aec653e414963bfebb5a0d79e89a522011f3251d..e53d29bb86e151fa28a54d6afead8827733cb2bc 100644
(file)
--- 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;