diff options
author | Duncan Sands <baldrick@free.fr> | 2007-12-10 14:43:10 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2007-12-10 14:43:10 +0000 |
commit | 4c8ee7f75e09d41344eb9a9d0f355021b35dd6bd (patch) | |
tree | ecb9199b11153dd1a8dc02d24f4bfd3e89ce9a78 /lib/ExecutionEngine | |
parent | 4e369a14db0b38ecd3ca9c57433c68263cd59190 (diff) | |
download | external_llvm-4c8ee7f75e09d41344eb9a9d0f355021b35dd6bd.zip external_llvm-4c8ee7f75e09d41344eb9a9d0f355021b35dd6bd.tar.gz external_llvm-4c8ee7f75e09d41344eb9a9d0f355021b35dd6bd.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')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 4 |
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(); } |