Skip to content

Commit 25d9829

Browse files
committed
Sema: Remove incorrect usage of big-O notation from comment
1 parent 563ba95 commit 25d9829

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/Sema/CSBindings.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -219,10 +219,11 @@ bool BindingSet::involvesTypeVariables() const {
219219
TypeVar->getImpl().canBindToPack())
220220
return true;
221221

222-
// This is effectively O(1) right now since bindings are re-computed
223-
// on each step of the solver, but once bindings are computed
224-
// incrementally it becomes more important to double-check that
225-
// any adjacent type variables found previously are still unresolved.
222+
// This is effectively a no-op right now since bindings are re-computed
223+
// on each step of the solver and fixed types won't appear in AdjancentVars,
224+
// but once bindings are computed incrementally it becomes important
225+
// to double-check that any adjacent type variables found previously are
226+
// still unresolved.
226227
return llvm::any_of(AdjacentVars, [](TypeVariableType *typeVar) {
227228
return !typeVar->getImpl().getFixedType(/*record=*/nullptr);
228229
});

0 commit comments

Comments
 (0)