aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2007-12-10 14:43:10 +0000
committerDuncan Sands <baldrick@free.fr>2007-12-10 14:43:10 +0000
commit22ad1d72cd4e5054389c94e1c03df4564c4a466a (patch)
treeecb9199b11153dd1a8dc02d24f4bfd3e89ce9a78 /lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
parentafc6de0015bbeb33a87faa6548c1289d649e832e (diff)
downloadexternal_llvm-22ad1d72cd4e5054389c94e1c03df4564c4a466a.zip
external_llvm-22ad1d72cd4e5054389c94e1c03df4564c4a466a.tar.gz
external_llvm-22ad1d72cd4e5054389c94e1c03df4564c4a466a.tar.bz2
It looks like this has been broken for some time -
get it to compile. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44791 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp')
-rw-r--r--lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index e86c1bc..ab05414 100644
--- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
@@ -246,14 +246,14 @@ GenericValue lle_X_drand48(FunctionType *FT, const vector<GenericValue> &Args) {
GenericValue lle_X_lrand48(FunctionType *FT, const vector<GenericValue> &Args) {
assert(Args.size() == 0);
GenericValue GV;
- GV.Int32Val = lrand48();
+ GV.IntVal = APInt(32, lrand48());
return GV;
}
// void srand48(long)
GenericValue lle_X_srand48(FunctionType *FT, const vector<GenericValue> &Args) {
assert(Args.size() == 1);
- srand48(Args[0].Int32Val);
+ srand48(Args[0].IntVal.getZExtValue());
return GenericValue();
}