File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -395,10 +395,11 @@ class Classification {
395
395
return result;
396
396
}
397
397
398
- static Classification forRethrowingOnly (PotentialThrowReason reason) {
398
+ static Classification forRethrowingOnly (PotentialThrowReason reason, bool isAsync ) {
399
399
Classification result;
400
400
result.Result = ThrowingKind::RethrowingOnly;
401
401
result.Reason = reason;
402
+ result.IsAsync = isAsync;
402
403
return result;
403
404
}
404
405
@@ -563,7 +564,7 @@ class ApplyClassifier {
563
564
// If we're currently doing rethrows-checking on the body of the
564
565
// function which declares the parameter, it's rethrowing-only.
565
566
if (param->getDeclContext () == RethrowsDC)
566
- return Classification::forRethrowingOnly (reason);
567
+ return Classification::forRethrowingOnly (reason, /* async */ false );
567
568
568
569
// Otherwise, it throws unconditionally.
569
570
return Classification::forThrow (reason, /* async*/ false );
You can’t perform that action at this time.
0 commit comments