summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-05-12 06:01:28 +0000
committerChris Lattner <sabre@nondot.org>2005-05-12 06:01:28 +0000
commit646c0f0234b785b2f2fd90f7477dc46d38d79c20 (patch)
tree68938c279b9a8d5adb72d841c3ac3919bf3caa98 /llvm/lib/ExecutionEngine/ExecutionEngine.cpp
parenta5bf1030bf7fac35b9a9f1e367acbd9cd5bd12e6 (diff)
downloadbcm5719-llvm-646c0f0234b785b2f2fd90f7477dc46d38d79c20.tar.gz
bcm5719-llvm-646c0f0234b785b2f2fd90f7477dc46d38d79c20.zip
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
Diffstat (limited to 'llvm/lib/ExecutionEngine/ExecutionEngine.cpp')
-rw-r--r--llvm/lib/ExecutionEngine/ExecutionEngine.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
index 22a28b51c85..97384dbba6b 100644
--- a/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
+++ b/llvm/lib/ExecutionEngine/ExecutionEngine.cpp
@@ -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
OpenPOWER on IntegriCloud