File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed
Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -2101,14 +2101,13 @@ Stmt *Traversal::visitForEachStmt(ForEachStmt *S) {
21012101 return nullptr ;
21022102 }
21032103
2104- if (Stmt *Desugared= S->getDesugaredStmt ()) {
2104+ if (Stmt *Desugared = S->getDesugaredStmt ()) {
21052105 if ((Desugared = doIt (Desugared)))
21062106 S->setDesugaredStmt (cast<BraceStmt>(Desugared));
21072107 else
21082108 return nullptr ;
21092109 }
21102110
2111-
21122111 return S;
21132112}
21142113
Original file line number Diff line number Diff line change @@ -3497,7 +3497,7 @@ static BraceStmt *desugarForEachStmt(ForEachStmt* stmt){
34973497 // expr. We need to investigate this.
34983498 // Swap in the 'unsafe' expression.
34993499 if (unsafeExpr) {
3500- unsafeExpr-> setSubExpr ( makeIteratorCall);
3500+ unsafeExpr = UnsafeExpr::createImplicit (ctx, unsafeExpr-> getUnsafeLoc (), makeIteratorCall);
35013501 makeIteratorCall = unsafeExpr;
35023502 }
35033503
You can’t perform that action at this time.
0 commit comments