mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-11 22:29:37 +00:00
Fix passing of float arguments through ffi.
llvm-svn: 89198
This commit is contained in:
parent
6b68bd153a
commit
ac0e7c8aca
@ -158,7 +158,7 @@ static void *ffiValueFor(const Type *Ty, const GenericValue &AV,
|
||||
}
|
||||
case Type::FloatTyID: {
|
||||
float *FloatPtr = (float *) ArgDataPtr;
|
||||
*FloatPtr = AV.DoubleVal;
|
||||
*FloatPtr = AV.FloatVal;
|
||||
return ArgDataPtr;
|
||||
}
|
||||
case Type::DoubleTyID: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user