Fix a really horrible problem that causes the JIT to miscompile any program

that use 64-bit integers on 32-bit hosts.

llvm-svn: 21886
This commit is contained in:
Chris Lattner
2005-05-12 06:01:28 +00:00
parent a5bf1030bf
commit 646c0f0234

View File

@@ -271,8 +271,8 @@ GenericValue ExecutionEngine::getConstantValue(const Constant *C) {
GET_CONST_VAL(Short , signed short , ConstantSInt);
GET_CONST_VAL(UInt , unsigned int , ConstantUInt);
GET_CONST_VAL(Int , signed int , ConstantSInt);
GET_CONST_VAL(ULong , unsigned long , ConstantUInt);
GET_CONST_VAL(Long , signed long , ConstantSInt);
GET_CONST_VAL(ULong , uint64_t , ConstantUInt);
GET_CONST_VAL(Long , int64_t , ConstantSInt);
GET_CONST_VAL(Float , float , ConstantFP);
GET_CONST_VAL(Double , double , ConstantFP);
#undef GET_CONST_VAL