@@ -2226,9 +2226,8 @@ class ParameterTypeFlags {
2226
2226
NoDerivative = 1 << 6,
2227
2227
Isolated = 1 << 7,
2228
2228
CompileTimeConst = 1 << 8,
2229
- ResultDependsOn = 1 << 9,
2230
- Sending = 1 << 10,
2231
- NumBits = 11
2229
+ Sending = 1 << 9,
2230
+ NumBits = 10
2232
2231
};
2233
2232
OptionSet<ParameterFlags> value;
2234
2233
static_assert(NumBits <= 8*sizeof(OptionSet<ParameterFlags>), "overflowed");
@@ -2243,22 +2242,20 @@ class ParameterTypeFlags {
2243
2242
2244
2243
ParameterTypeFlags(bool variadic, bool autoclosure, bool nonEphemeral,
2245
2244
ParamSpecifier specifier, bool isolated, bool noDerivative,
2246
- bool compileTimeConst, bool hasResultDependsOn,
2247
- bool isSending)
2245
+ bool compileTimeConst, bool isSending)
2248
2246
: value((variadic ? Variadic : 0) | (autoclosure ? AutoClosure : 0) |
2249
2247
(nonEphemeral ? NonEphemeral : 0) |
2250
2248
uint8_t(specifier) << SpecifierShift | (isolated ? Isolated : 0) |
2251
2249
(noDerivative ? NoDerivative : 0) |
2252
2250
(compileTimeConst ? CompileTimeConst : 0) |
2253
- (hasResultDependsOn ? ResultDependsOn : 0) |
2254
2251
(isSending ? Sending : 0)) {}
2255
2252
2256
2253
/// Create one from what's present in the parameter type
2257
2254
inline static ParameterTypeFlags
2258
2255
fromParameterType(Type paramTy, bool isVariadic, bool isAutoClosure,
2259
2256
bool isNonEphemeral, ParamSpecifier ownership,
2260
2257
bool isolated, bool isNoDerivative, bool compileTimeConst,
2261
- bool hasResultDependsOn, bool isSending);
2258
+ bool isSending);
2262
2259
2263
2260
bool isNone() const { return !value; }
2264
2261
bool isVariadic() const { return value.contains(Variadic); }
@@ -2270,7 +2267,6 @@ class ParameterTypeFlags {
2270
2267
bool isIsolated() const { return value.contains(Isolated); }
2271
2268
bool isCompileTimeConst() const { return value.contains(CompileTimeConst); }
2272
2269
bool isNoDerivative() const { return value.contains(NoDerivative); }
2273
- bool hasResultDependsOn() const { return value.contains(ResultDependsOn); }
2274
2270
bool isSending() const { return value.contains(Sending); }
2275
2271
2276
2272
/// Get the spelling of the parameter specifier used on the parameter.
@@ -2433,7 +2429,6 @@ class YieldTypeFlags {
2433
2429
/*nonEphemeral*/ false, getOwnershipSpecifier(),
2434
2430
/*isolated*/ false, /*noDerivative*/ false,
2435
2431
/*compileTimeConst*/ false,
2436
- /*hasResultDependsOn*/ false,
2437
2432
/*is transferring*/ false);
2438
2433
}
2439
2434
@@ -7771,7 +7766,7 @@ inline TupleTypeElt TupleTypeElt::getWithType(Type T) const {
7771
7766
inline ParameterTypeFlags ParameterTypeFlags::fromParameterType(
7772
7767
Type paramTy, bool isVariadic, bool isAutoClosure, bool isNonEphemeral,
7773
7768
ParamSpecifier ownership, bool isolated, bool isNoDerivative,
7774
- bool compileTimeConst, bool hasResultDependsOn, bool isSending) {
7769
+ bool compileTimeConst, bool isSending) {
7775
7770
// FIXME(Remove InOut): The last caller that needs this is argument
7776
7771
// decomposition. Start by enabling the assertion there and fixing up those
7777
7772
// callers, then remove this, then remove
@@ -7781,9 +7776,8 @@ inline ParameterTypeFlags ParameterTypeFlags::fromParameterType(
7781
7776
ownership == ParamSpecifier::InOut);
7782
7777
ownership = ParamSpecifier::InOut;
7783
7778
}
7784
- return {isVariadic, isAutoClosure, isNonEphemeral,
7785
- ownership, isolated, isNoDerivative,
7786
- compileTimeConst, hasResultDependsOn, isSending};
7779
+ return {isVariadic, isAutoClosure, isNonEphemeral, ownership,
7780
+ isolated, isNoDerivative, compileTimeConst, isSending};
7787
7781
}
7788
7782
7789
7783
inline const Type *BoundGenericType::getTrailingObjectsPointer() const {
0 commit comments