mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Fold ExtInfo::isThin and ::isBlock into a "Representation" enum.
These bits are orthogonal to each other, so combine them into one, and diagnose attempts to produce a type that's both. Spot-fix a bunch of places this revealed by inspection that we would have crashed in SILGen or IRGen if blocks were be handled. Swift SVN r16088
This commit is contained in:
@@ -30,11 +30,10 @@ SILType SILBuilder::getPartialApplyResultType(SILType origTy, unsigned argCount,
|
||||
auto newParams = params.slice(0, params.size() - argCount);
|
||||
|
||||
auto extInfo = SILFunctionType::ExtInfo(AbstractCC::Freestanding,
|
||||
/*thin*/ false,
|
||||
/*noreturn*/ FTI->isNoReturn(),
|
||||
/*autoclosure*/ false,
|
||||
/*block*/ false);
|
||||
|
||||
SILFunctionType::Representation::Thick,
|
||||
/*noreturn*/ FTI->isNoReturn(),
|
||||
/*autoclosure*/ false);
|
||||
|
||||
auto appliedFnType = SILFunctionType::get(nullptr, extInfo,
|
||||
ParameterConvention::Direct_Owned,
|
||||
newParams,
|
||||
|
||||
Reference in New Issue
Block a user