@@ -290,9 +290,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
290290 if (auto *ternary = dyn_cast<TernaryExpr>(Op)) {
291291 // Resolve the ternary expression.
292292 if (!Ctx.CompletionCallback ) {
293- // In code completion we might call preCheckExpression twice - once for
293+ // In code completion we might call preCheckTarget twice - once for
294294 // the first pass and once for the second pass. This is fine since
295- // preCheckExpression idempotent.
295+ // preCheckTarget is idempotent.
296296 assert (!ternary->isFolded () && " already folded if expr in sequence?!" );
297297 }
298298 ternary->setCondExpr (LHS);
@@ -303,9 +303,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
303303 if (auto *assign = dyn_cast<AssignExpr>(Op)) {
304304 // Resolve the assignment expression.
305305 if (!Ctx.CompletionCallback ) {
306- // In code completion we might call preCheckExpression twice - once for
306+ // In code completion we might call preCheckTarget twice - once for
307307 // the first pass and once for the second pass. This is fine since
308- // preCheckExpression idempotent.
308+ // preCheckTarget is idempotent.
309309 assert (!assign->isFolded () && " already folded assign expr in sequence?!" );
310310 }
311311 assign->setDest (LHS);
@@ -316,9 +316,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
316316 if (auto *as = dyn_cast<ExplicitCastExpr>(Op)) {
317317 // Resolve the 'as' or 'is' expression.
318318 if (!Ctx.CompletionCallback ) {
319- // In code completion we might call preCheckExpression twice - once for
319+ // In code completion we might call preCheckTarget twice - once for
320320 // the first pass and once for the second pass. This is fine since
321- // preCheckExpression idempotent.
321+ // preCheckTarget is idempotent.
322322 assert (!as->isFolded () && " already folded 'as' expr in sequence?!" );
323323 }
324324 assert (RHS == as && " 'as' with non-type RHS?!" );
@@ -329,9 +329,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
329329 if (auto *arrow = dyn_cast<ArrowExpr>(Op)) {
330330 // Resolve the '->' expression.
331331 if (!Ctx.CompletionCallback ) {
332- // In code completion we might call preCheckExpression twice - once for
332+ // In code completion we might call preCheckTarget twice - once for
333333 // the first pass and once for the second pass. This is fine since
334- // preCheckExpression idempotent.
334+ // preCheckTarget is idempotent.
335335 assert (!arrow->isFolded () && " already folded '->' expr in sequence?!" );
336336 }
337337 arrow->setArgsExpr (LHS);
0 commit comments