@@ -7360,9 +7360,8 @@ Expr *ExprRewriter::finishApply(ApplyExpr *apply, Type openedType,
7360
7360
return cs.getType (E);
7361
7361
};
7362
7362
7363
- auto callSubExpr = CallExpr::create (tc.Context , body, escapable, {}, {},
7364
- /* trailing closure*/ false ,
7365
- /* implicit*/ true , Type (), getType);
7363
+ auto callSubExpr = CallExpr::createImplicit (tc.Context , body, {escapable}, {}, getType);
7364
+ cs.cacheSubExprTypes (callSubExpr);
7366
7365
cs.setType (callSubExpr, resultType);
7367
7366
7368
7367
auto replacement = new (tc.Context )
@@ -7414,10 +7413,8 @@ Expr *ExprRewriter::finishApply(ApplyExpr *apply, Type openedType,
7414
7413
return cs.getType (E);
7415
7414
};
7416
7415
7417
- auto callSubExpr = CallExpr::create (tc.Context , body, opaqueValue, {},
7418
- {}, /* trailing closure*/ false ,
7419
- /* implicit*/ true ,
7420
- Type (), getType);
7416
+ auto callSubExpr = CallExpr::createImplicit (tc.Context , body, {opaqueValue}, {}, getType);
7417
+ cs.cacheSubExprTypes (callSubExpr);
7421
7418
cs.setType (callSubExpr, resultTy);
7422
7419
7423
7420
auto replacement = new (tc.Context )
0 commit comments