Skip to content

Commit 4ed51fb

Browse files
committed
Sema: Add a FIXME
1 parent 1c5452d commit 4ed51fb

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/Sema/CSSimplify.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,10 @@ matchCallArguments(ConstraintSystem &cs, ConstraintKind kind,
883883
paramIdx));
884884
auto argTy = args[argIdx].getType();
885885

886+
// FIXME: This should be revisited. If one of argTy or paramTy
887+
// is a type variable, matchTypes() will add a constraint, and
888+
// when the constraint is later solved, we will have lost the
889+
// value of 'subflags'.
886890
if (!haveOneNonUserConversion) {
887891
subflags |= ConstraintSystem::TMF_ApplyingOperatorParameter;
888892
}

0 commit comments

Comments
 (0)