Skip to content

Commit 058dbc1

Browse files
committed
---
yaml --- r: 346091 b: refs/heads/master c: 91ba2d8 h: refs/heads/master i: 346089: 319347b 346087: 2e613a5
1 parent 99d2e09 commit 058dbc1

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 3dc33fc35b291dc909ecfea83699fc32d79cbca2
2+
refs/heads/master: 91ba2d846ba2f10aa16e344e997cda7d16524405
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/lib/SILOptimizer/PassManager/PassPipeline.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,6 @@ static void addDefiniteInitialization(SILPassPipelinePlan &P) {
8282
static void addMandatoryOptPipeline(SILPassPipelinePlan &P,
8383
const SILOptions &Options) {
8484
P.startPipeline("Guaranteed Passes");
85-
if (Options.EnableMandatorySemanticARCOpts) {
86-
P.addSemanticARCOpts();
87-
}
8885
P.addDiagnoseStaticExclusivity();
8986
P.addCapturePromotion();
9087

@@ -95,6 +92,9 @@ static void addMandatoryOptPipeline(SILPassPipelinePlan &P,
9592
P.addAllocBoxToStack();
9693
P.addNoReturnFolding();
9794
addDefiniteInitialization(P);
95+
if (Options.EnableMandatorySemanticARCOpts) {
96+
P.addSemanticARCOpts();
97+
}
9898
P.addClosureLifetimeFixup();
9999
P.addOwnershipModelEliminator();
100100
P.addMandatoryInlining();

trunk/lib/Sema/CSDiagnostics.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,10 @@ ValueDecl *RequirementFailure::getDeclRef() const {
119119
ConstraintLocatorBuilder subscript(locator);
120120
locator = cs.getConstraintLocator(
121121
subscript.withPathElement(PathEltKind::SubscriptMember));
122+
} else if (isa<MemberRefExpr>(anchor)) {
123+
ConstraintLocatorBuilder memberRef(locator);
124+
locator =
125+
cs.getConstraintLocator(memberRef.withPathElement(PathEltKind::Member));
122126
}
123127

124128
auto overload = getOverloadChoiceIfAvailable(locator);

0 commit comments

Comments
 (0)