mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
Fix passing of float arguments through ffi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
834b08af8d
commit
b5106f5c33
@ -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