Skip to content

Commit 860e14e

Browse files
committed
[CSGen] Remove redundant r-value adjustment constraint
Since unresolved members now introduce an implicit expression during pre-check, there is no need to add a separate r-value adjustment constraint to connect "tail" of the chain with chain result.
1 parent 0fb4080 commit 860e14e

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

lib/Sema/CSGen.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,9 +1446,6 @@ namespace {
14461446

14471447
// The result of the last element of the chain must be convertible to the
14481448
// whole chain, and the type of the whole chain must be equal to the base.
1449-
CS.addConstraint(
1450-
ConstraintKind::Conversion, memberTy, chainBaseTy,
1451-
CS.getConstraintLocator(tail, ConstraintLocator::RValueAdjustment));
14521449
CS.addConstraint(ConstraintKind::Conversion, memberTy, chainResultTy,
14531450
locator);
14541451
CS.addConstraint(ConstraintKind::Equal, chainBaseTy, chainResultTy,

0 commit comments

Comments
 (0)