ΒΆbool mustPassRecordIndirectly(
clang::CodeGen::CodeGenModule& CGM,
const clang::RecordDecl* record)
bool mustPassRecordIndirectly(
clang::CodeGen::CodeGenModule& CGM,
const clang::RecordDecl* record)
Description
Is the given record type required to be passed and returned indirectly because of language restrictions? This considers *only* mandatory indirectness due to language restrictions, such as C++'s non-trivially-copyable types and Objective-C's __weak references. A record for which this returns true may still be passed indirectly for other reasons, such as being too large to fit in a reasonable number of registers.
Declared at: clang/include/clang/CodeGen/SwiftCallingConv.h:165
Parameters
- clang::CodeGen::CodeGenModule& CGM
- const clang::RecordDecl* record