summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-01-15 18:39:06 +0000
committerChris Lattner <sabre@nondot.org>2004-01-15 18:39:06 +0000
commit980ff78e3c67cb660eb88a390581f5c4fc1d3517 (patch)
treec24a0e76b63e2dea597c91678901cb008be2928c
parentf5edf1e931ca33400a1ec0b4eee060a0d58b3681 (diff)
downloadbcm5719-llvm-980ff78e3c67cb660eb88a390581f5c4fc1d3517.tar.gz
bcm5719-llvm-980ff78e3c67cb660eb88a390581f5c4fc1d3517.zip
Fix more breakage with string change.
llvm-svn: 10882
-rw-r--r--llvm/lib/Bytecode/Reader/ConstantReader.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Bytecode/Reader/ConstantReader.cpp b/llvm/lib/Bytecode/Reader/ConstantReader.cpp
index 93a9afac72a..c8e9feb0bef 100644
--- a/llvm/lib/Bytecode/Reader/ConstantReader.cpp
+++ b/llvm/lib/Bytecode/Reader/ConstantReader.cpp
@@ -298,10 +298,10 @@ void BytecodeParser::parseStringConstants(const unsigned char *&Buf,
std::vector<Constant*> Elements(ATy->getNumElements());
if (ATy->getElementType() == Type::SByteTy)
for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i)
- Elements[i] = ConstantSInt::get(Type::SByteTy, Data[i]);
+ Elements[i] = ConstantSInt::get(Type::SByteTy, (signed char)Data[i]);
else
for (unsigned i = 0, e = ATy->getNumElements(); i != e; ++i)
- Elements[i] = ConstantUInt::get(Type::UByteTy, Data[i]);
+ Elements[i] = ConstantUInt::get(Type::UByteTy, (unsigned char)Data[i]);
// Create the constant, inserting it as needed.
Constant *C = ConstantArray::get(ATy, Elements);
OpenPOWER on IntegriCloud