Skip to content

Commit 73b6427

Browse files
committed
[ConstraintSystem] Store parameter flags in synthesized argument locator
1 parent 9406edc commit 73b6427

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -839,8 +839,8 @@ class ArgumentFailureTracker : public MatchCallArgumentListener {
839839
unsigned newArgIdx = Arguments.size();
840840
auto argLoc =
841841
Locator
842-
.withPathElement(
843-
LocatorPathElt::ApplyArgToParam(newArgIdx, paramIdx))
842+
.withPathElement(LocatorPathElt::ApplyArgToParam(
843+
newArgIdx, paramIdx, param.getParameterFlags()))
844844
.withPathElement(LocatorPathElt::SynthesizedArgument(newArgIdx));
845845

846846
auto *argType = CS.createTypeVariable(

0 commit comments

Comments
 (0)