File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -1748,7 +1748,7 @@ bool CoroutineStmtBuilder::makeOnFallthrough() {
1748
1748
return false ;
1749
1749
} else if (HasRVoid) {
1750
1750
Fallthrough = S.BuildCoreturnStmt (FD.getLocation (), nullptr ,
1751
- /* IsImplicit*/ false );
1751
+ /* IsImplicit= */ true );
1752
1752
Fallthrough = S.ActOnFinishFullStmt (Fallthrough.get ());
1753
1753
if (Fallthrough.isInvalid ())
1754
1754
return false ;
Original file line number Diff line number Diff line change @@ -52,8 +52,7 @@ Task test() {
52
52
// CHECK-NEXT: |-CXXMemberCallExpr {{.*}} 'std::suspend_always'
53
53
// CHECK-NEXT: | | `-MemberExpr {{.*}} .initial_suspend
54
54
// ...
55
- // FIXME: the CoreturnStmt should be marked as implicit
56
- // CHECK: CoreturnStmt {{.*}} <col:6>{{$}}
55
+ // CHECK: CoreturnStmt {{.*}} <col:6> implicit
57
56
58
57
Task test2 () {
59
58
// Writen souce code, verify no implicit bit for the co_return expr.
@@ -65,5 +64,4 @@ Task test2() {
65
64
// CHECK: |-DeclStmt {{.*}}
66
65
// CHECK-NEXT: | `-VarDecl {{.*}} implicit used __promise
67
66
// ...
68
- // FIXME: the CoreturnStmt should be marked as implicit
69
- // CHECK: CoreturnStmt {{.*}} <col:6>{{$}}
67
+ // CHECK: CoreturnStmt {{.*}} <col:6> implicit
You can’t perform that action at this time.
0 commit comments