File tree Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Expand file tree Collapse file tree 1 file changed +3
-15
lines changed Original file line number Diff line number Diff line change @@ -1233,22 +1233,10 @@ class ApplyClassifier {
1233
1233
EffectKind kind) {
1234
1234
if (!paramType || paramType->hasError ())
1235
1235
return Classification::forInvalidCode ();
1236
- if (auto fnType = paramType->getAs <AnyFunctionType>()) {
1237
- if (fnType->hasEffect (kind)) {
1238
- return Classification::forUnconditional (kind, reason);
1239
- } else {
1240
- return Classification ();
1241
- }
1242
- }
1243
- if (auto tupleType = paramType->getAs <TupleType>()) {
1244
- Classification result;
1245
- for (auto eltType : tupleType->getElementTypes ()) {
1246
- result.merge (classifyArgumentByType (eltType, reason, kind));
1247
- }
1248
- return result;
1249
- }
1250
1236
1251
- // No other types include throwing functions for now.
1237
+ if (hasFunctionParameterWithEffect (kind, paramType))
1238
+ return Classification::forUnconditional (kind, reason);
1239
+
1252
1240
return Classification ();
1253
1241
}
1254
1242
};
You can’t perform that action at this time.
0 commit comments