summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ExecutionEngine/Interpreter
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
commit81b25817f9dbcc408595aa022833ae624221484d (patch)
treed5bd0f2663d0ab1d75a10bf8d8f7e80f3e56a6fc /llvm/lib/ExecutionEngine/Interpreter
parent1b9853a9f8acbc60b53112561eb82f38b604e238 (diff)
downloadbcm5719-llvm-81b25817f9dbcc408595aa022833ae624221484d.tar.gz
bcm5719-llvm-81b25817f9dbcc408595aa022833ae624221484d.zip
It looks like this has been broken for some time -
get it to compile. llvm-svn: 44791
Diffstat (limited to 'llvm/lib/ExecutionEngine/Interpreter')
-rw-r--r--llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
index e86c1bc2b45..ab05414519c 100644
--- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp
+++ b/llvm/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();
}
OpenPOWER on IntegriCloud