| Index: src/PNaClTranslator.cpp
|
| diff --git a/src/PNaClTranslator.cpp b/src/PNaClTranslator.cpp
|
| index df2989c948dc8ad30cb95483d01d0a7411facfc9..eac076004440e4e54c1294774f96311ddbc967b0 100644
|
| --- a/src/PNaClTranslator.cpp
|
| +++ b/src/PNaClTranslator.cpp
|
| @@ -1777,8 +1777,11 @@ void ConstantsParser::ProcessRecord() {
|
| if (IntegerType *IType = dyn_cast<IntegerType>(
|
| Context->convertToLLVMType(NextConstantType))) {
|
| APInt Value(IType->getBitWidth(), NaClDecodeSignRotatedValue(Values[0]));
|
| - Ice::Constant *C =
|
| - getContext()->getConstantInt(NextConstantType, Value.getSExtValue());
|
| + Ice::Constant *C = (NextConstantType == Ice::IceType_i64)
|
| + ? getContext()->getConstantInt64(
|
| + NextConstantType, Value.getSExtValue())
|
| + : getContext()->getConstantInt32(
|
| + NextConstantType, Value.getSExtValue());
|
| FuncParser->setNextConstantID(C);
|
| return;
|
| }
|
|
|