Use ConstraintLocator::Member for members rather than ConstraintLocator::MemberRefBase.

Swift SVN r21920
This commit is contained in:
Doug Gregor
2014-09-12 20:27:20 +00:00
parent 43b6ed364a
commit dd6c32cf3e
3 changed files with 3 additions and 3 deletions

View File

@@ -73,9 +73,8 @@ namespace {
auto tv = CS.createTypeVariable(
CS.getConstraintLocator(expr, ConstraintLocator::Member),
TVO_CanBindToLValue);
// FIXME: Constraint below should be a ::Member constraint?
CS.addValueMemberConstraint(baseTy, name, tv,
CS.getConstraintLocator(expr, ConstraintLocator::MemberRefBase));
CS.getConstraintLocator(expr, ConstraintLocator::Member));
return tv;
}