@@ -290,9 +290,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
290
290
if (auto *ternary = dyn_cast<TernaryExpr>(Op)) {
291
291
// Resolve the ternary expression.
292
292
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
294
294
// the first pass and once for the second pass. This is fine since
295
- // preCheckExpression idempotent.
295
+ // preCheckTarget is idempotent.
296
296
assert (!ternary->isFolded () && " already folded if expr in sequence?!" );
297
297
}
298
298
ternary->setCondExpr (LHS);
@@ -303,9 +303,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
303
303
if (auto *assign = dyn_cast<AssignExpr>(Op)) {
304
304
// Resolve the assignment expression.
305
305
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
307
307
// the first pass and once for the second pass. This is fine since
308
- // preCheckExpression idempotent.
308
+ // preCheckTarget is idempotent.
309
309
assert (!assign->isFolded () && " already folded assign expr in sequence?!" );
310
310
}
311
311
assign->setDest (LHS);
@@ -316,9 +316,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
316
316
if (auto *as = dyn_cast<ExplicitCastExpr>(Op)) {
317
317
// Resolve the 'as' or 'is' expression.
318
318
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
320
320
// the first pass and once for the second pass. This is fine since
321
- // preCheckExpression idempotent.
321
+ // preCheckTarget is idempotent.
322
322
assert (!as->isFolded () && " already folded 'as' expr in sequence?!" );
323
323
}
324
324
assert (RHS == as && " 'as' with non-type RHS?!" );
@@ -329,9 +329,9 @@ static Expr *makeBinOp(ASTContext &Ctx, Expr *Op, Expr *LHS, Expr *RHS,
329
329
if (auto *arrow = dyn_cast<ArrowExpr>(Op)) {
330
330
// Resolve the '->' expression.
331
331
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
333
333
// the first pass and once for the second pass. This is fine since
334
- // preCheckExpression idempotent.
334
+ // preCheckTarget is idempotent.
335
335
assert (!arrow->isFolded () && " already folded '->' expr in sequence?!" );
336
336
}
337
337
arrow->setArgsExpr (LHS);
0 commit comments