forked from OSchip/llvm-project
parent
4cdade6a2f
commit
e635215009
|
@ -254,8 +254,8 @@ void SwiftAggLowering::addLegalTypedData(llvm::Type *type,
|
||||||
|
|
||||||
void SwiftAggLowering::addEntry(llvm::Type *type,
|
void SwiftAggLowering::addEntry(llvm::Type *type,
|
||||||
CharUnits begin, CharUnits end) {
|
CharUnits begin, CharUnits end) {
|
||||||
assert(!type ||
|
assert((!type ||
|
||||||
(!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type)) &&
|
(!isa<llvm::StructType>(type) && !isa<llvm::ArrayType>(type))) &&
|
||||||
"cannot add aggregate-typed data");
|
"cannot add aggregate-typed data");
|
||||||
assert(!type || begin.isMultipleOf(getNaturalAlignment(CGM, type)));
|
assert(!type || begin.isMultipleOf(getNaturalAlignment(CGM, type)));
|
||||||
|
|
||||||
|
@ -827,4 +827,4 @@ void swiftcall::computeABIInfo(CodeGenModule &CGM, CGFunctionInfo &FI) {
|
||||||
auto &argInfo = FI.arg_begin()[i];
|
auto &argInfo = FI.arg_begin()[i];
|
||||||
argInfo.info = classifyArgumentType(CGM, argInfo.type);
|
argInfo.info = classifyArgumentType(CGM, argInfo.type);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue