@@ -837,20 +837,20 @@ class ArgumentFailureTracker : public MatchCallArgumentListener {
837
837
const auto ¶m = Parameters[paramIdx];
838
838
839
839
unsigned newArgIdx = Arguments.size ();
840
- auto argLoc =
840
+ auto * argLoc = CS. getConstraintLocator (
841
841
Locator
842
842
.withPathElement (LocatorPathElt::ApplyArgToParam (
843
843
newArgIdx, paramIdx, param.getParameterFlags ()))
844
- .withPathElement (LocatorPathElt::SynthesizedArgument (newArgIdx));
844
+ .withPathElement (LocatorPathElt::SynthesizedArgument (newArgIdx))) ;
845
845
846
- auto *argType = CS. createTypeVariable (
847
- CS.getConstraintLocator (argLoc),
848
- TVO_CanBindToInOut | TVO_CanBindToLValue | TVO_CanBindToNoEscape);
846
+ auto *argType =
847
+ CS.createTypeVariable (argLoc, TVO_CanBindToInOut | TVO_CanBindToLValue |
848
+ TVO_CanBindToNoEscape);
849
849
850
850
CS.recordHole (argType);
851
- CS.addUnsolvedConstraint (Constraint::create (
852
- CS, ConstraintKind::Defaultable, argType, CS. getASTContext (). TheAnyType ,
853
- CS.getConstraintLocator (argLoc) ));
851
+ CS.addUnsolvedConstraint (
852
+ Constraint::create ( CS, ConstraintKind::Defaultable, argType,
853
+ CS.getASTContext (). TheAnyType , argLoc ));
854
854
855
855
Arguments.push_back (param.withType (argType));
856
856
++NumSynthesizedArgs;
0 commit comments