From: Duncan Sands Date: Mon, 10 Dec 2007 14:43:10 +0000 (+0000) Subject: It looks like this has been broken for some time - X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=22ad1d72cd4e5054389c94e1c03df4564c4a466a;p=oota-llvm.git 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 --- diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index e86c1bc2b45..ab05414519c 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 &Args) { GenericValue lle_X_lrand48(FunctionType *FT, const vector &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 &Args) { assert(Args.size() == 1); - srand48(Args[0].Int32Val); + srand48(Args[0].IntVal.getZExtValue()); return GenericValue(); }