diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2009-11-18 05:43:15 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2009-11-18 05:43:15 +0000 |
commit | b5106f5c33b79827ce2d329e0ac9f2780b9fe222 (patch) | |
tree | 476feef72824ae555cab544d1a4da12c0d6d382a /lib/ExecutionEngine/Interpreter | |
parent | 834b08af8d3d8fc6c76ac6ca40674565689e8d7f (diff) | |
download | external_llvm-b5106f5c33b79827ce2d329e0ac9f2780b9fe222.zip external_llvm-b5106f5c33b79827ce2d329e0ac9f2780b9fe222.tar.gz external_llvm-b5106f5c33b79827ce2d329e0ac9f2780b9fe222.tar.bz2 |
Fix passing of float arguments through ffi.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89198 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/ExecutionEngine/Interpreter')
-rw-r--r-- | lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 8b4e961..c02d84f 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -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: { |