File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 579f7e633f52ca28eb2b940f9f1924d80a20fedd
2
+ refs/heads/master: 1923c27346f74c21fc19756db61294b9283fbfa5
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -54,10 +54,9 @@ class ObjectProjection {
54
54
55
55
const Projection &getProjection () const { return proj; }
56
56
57
- const ProjectionPath getProjectionPath () const {
57
+ const Optional< ProjectionPath> getProjectionPath () const {
58
58
return ProjectionPath::getProjectionPath (stripBorrow (REA->getOperand ()),
59
- REA)
60
- .getValue ();
59
+ REA);
61
60
}
62
61
63
62
bool operator ==(const ObjectProjection &other) const {
@@ -284,7 +283,11 @@ class AccessedStorage {
284
283
}
285
284
auto projPath = getObjectProjection ().getProjectionPath ();
286
285
auto otherProjPath = other.getObjectProjection ().getProjectionPath ();
287
- return projPath.hasNonEmptySymmetricDifference (otherProjPath);
286
+ if (!projPath.hasValue () || !otherProjPath.hasValue ()) {
287
+ return false ;
288
+ }
289
+ return projPath.getValue ().hasNonEmptySymmetricDifference (
290
+ otherProjPath.getValue ());
288
291
}
289
292
290
293
// / Returns the ValueDecl for the underlying storage, if it can be
You can’t perform that action at this time.
0 commit comments