It looks like this has been broken for some time -

get it to compile.

llvm-svn: 44791
This commit is contained in:
Duncan Sands 2007-12-10 14:43:10 +00:00
parent 1b9853a9f8
commit 81b25817f9
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}