Skip to content

Commit 7966c5c

Browse files
committed
---
yaml --- r: 343919 b: refs/heads/master-rebranch c: c946b38 h: refs/heads/master i: 343917: 1730bed 343915: 9176e2e 343911: 16972cb 343903: 336221e
1 parent b320d6a commit 7966c5c

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1455,7 +1455,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-02-a: ddd2b2976aa9bfde5f20fe37f6bd2
14551455
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2019-08-03-a: 171cc166f2abeb5ca2a4003700a8a78a108bd300
14561456
refs/heads/benlangmuir-patch-1: baaebaf39d52f3bf36710d4fe40cf212e996b212
14571457
refs/heads/i-do-redeclare: 8c4e6d5de5c1e3f0a2cedccf319df713ea22c48e
1458-
refs/heads/master-rebranch: 93b39c9c2324f853e4c8515d1f9ce9071bc0e625
1458+
refs/heads/master-rebranch: c946b3862edd9c688b24b7c772616db31c22c767
14591459
refs/heads/rdar-53901732: 9bd06af3284e18a109cdbf9aa59d833b24eeca7b
14601460
refs/heads/revert-26776-subst-always-returns-a-type: 1b8e18fdd391903a348970a4c848995d4cdd789c
14611461
refs/heads/tensorflow-merge: 8b854f62f80d4476cb383d43c4aac2001dde3cec

branches/master-rebranch/lib/Sema/CSSimplify.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2583,6 +2583,16 @@ bool ConstraintSystem::repairFailures(
25832583
if (hasConversionOrRestriction(ConversionRestrictionKind::DeepEquality))
25842584
break;
25852585

2586+
// If there implicit 'something-to-pointer' conversions involved,
2587+
// such conversions are going to be diagnosed by specialized fix
2588+
// which deals with generic argument mismatches.
2589+
if (hasConversionOrRestriction(ConversionRestrictionKind::ArrayToPointer) ||
2590+
hasConversionOrRestriction(ConversionRestrictionKind::InoutToPointer) ||
2591+
hasConversionOrRestriction(
2592+
ConversionRestrictionKind::PointerToPointer) ||
2593+
matchKind == ConstraintKind::BindToPointerType)
2594+
break;
2595+
25862596
// If this is a ~= operator implicitly generated by pattern matching
25872597
// let's not try to fix right-hand side of the operator because it's
25882598
// a correct contextual type.

0 commit comments

Comments
 (0)