mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
When lowering the arguments for the FFI call on certain targets, LLVM expects that the parameter be passed as a structure rather than the extracted values. Enhance the argument lowering for the call and the function construction to ensure that the type can be flattened according to the ABI for the target before attempting to explode it for the SIL IRGen lowering. This allows building for targets such as Linux ARM HF and Linux ARM SF target with the HF floating point ABI. Addresses SR-6142!
9 lines
60 B
C
9 lines
60 B
C
|
|
typedef struct S {
|
|
float f;
|
|
float g;
|
|
} S;
|
|
|
|
void f(S);
|
|
|