File tree Expand file tree Collapse file tree 2 files changed +10
-9
lines changed
validation-test/compiler_crashers_2_fixed Expand file tree Collapse file tree 2 files changed +10
-9
lines changed Original file line number Diff line number Diff line change @@ -574,12 +574,14 @@ AbstractionPattern AbstractionPattern::getFunctionResultType() const {
574
574
// If there's a single argument, abstract it according to its formal type
575
575
// in the ObjC signature.
576
576
unsigned callbackResultIndex = 0 ;
577
- if (callbackErrorIndex && callbackResultIndex >= *callbackErrorIndex)
578
- ++callbackResultIndex;
579
- if (callbackErrorFlagIndex
580
- && callbackResultIndex >= *callbackErrorFlagIndex)
581
- ++callbackResultIndex;
582
-
577
+ for (auto index : indices (callbackParamTy->getParamTypes ())) {
578
+ if (callbackErrorIndex && index == *callbackErrorIndex)
579
+ continue ;
580
+ if (callbackErrorFlagIndex && index == *callbackErrorFlagIndex)
581
+ continue ;
582
+ callbackResultIndex = index;
583
+ break ;
584
+ }
583
585
auto clangResultType = callbackParamTy
584
586
->getParamType (callbackResultIndex)
585
587
.getTypePtr ();
Original file line number Diff line number Diff line change @@ -25,9 +25,8 @@ func run(on object: PFXObject) async throws {
25
25
// CHECK: performSingleBothy13
26
26
print ( try await object. performSingleBothy13 ( ) ( ) )
27
27
28
- // Reenable with rdar://81625544
29
- // CHECK performSingleBothy21
30
- // print(try await object.performSingleBothy21()())
28
+ // CHECK: performSingleBothy21
29
+ print ( try await object. performSingleBothy21 ( ) ( ) )
31
30
32
31
// CHECK: performSingleBothy23
33
32
print ( try await object. performSingleBothy23 ( ) ( ) )
You can’t perform that action at this time.
0 commit comments