@@ -2423,7 +2423,7 @@ class ConstraintSystem {
24232423 // / A cache of implicitly generated dot-member expressions used as roots
24242424 // / for some `.callAsFunction` calls. The key here is "base" locator for
24252425 // / the `.callAsFunction` member reference.
2426- llvm::SmallMapVector <ConstraintLocator *, UnresolvedDotExpr *, 2 >
2426+ llvm::SmallDenseMap <ConstraintLocator *, UnresolvedDotExpr *, 2 >
24272427 ImplicitCallAsFunctionRoots;
24282428
24292429 // / The set of conformances synthesized during solving (i.e. for
@@ -2855,9 +2855,6 @@ class ConstraintSystem {
28552855 // / FIXME: Remove this.
28562856 unsigned numFixes;
28572857
2858- // / The length of \c ImplicitCallAsFunctionRoots.
2859- unsigned numImplicitCallAsFunctionRoots;
2860-
28612858 // / The length of \c SynthesizedConformances.
28622859 unsigned numSynthesizedConformances;
28632860
@@ -3634,10 +3631,8 @@ class ConstraintSystem {
36343631 void recordMatchCallArgumentResult (ConstraintLocator *locator,
36353632 MatchCallArgumentResult result);
36363633
3637- // / Record implicitly generated `callAsFunction` with root at the
3638- // / given expression, located at \c locator.
3639- void recordCallAsFunction (UnresolvedDotExpr *root, ArgumentList *arguments,
3640- ConstraintLocator *locator);
3634+ void recordImplicitCallAsFunctionRoot (
3635+ ConstraintLocator *locator, UnresolvedDotExpr *root);
36413636
36423637 // / Record root, value, and declContext of keypath expression for use across
36433638 // / constraint system, and add a change to the trail.
0 commit comments