Skip to content

Commit 6b1f30f

Browse files
committed
---
yaml --- r: 326543 b: refs/heads/tensorflow c: 4aa18db h: refs/heads/master i: 326541: a6e0f98 326539: 23c6d91 326535: faceeed 326527: e67cc5e
1 parent 57c73af commit 6b1f30f

File tree

2 files changed

+1
-17
lines changed

2 files changed

+1
-17
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-04-25-a: 22f738a831d43aff2b9c9773bcb65
816816
refs/tags/swift-DEVELOPMENT-SNAPSHOT-2018-05-08-a: 7d98cc16689baba5c8a3b90a9329bdcc1a12b4e9
817817
refs/heads/cherr42: a566ad54b073c2c56ac0a705d0a5bed9743135a5
818818
"refs/heads/codable_test_comment_fix": fc8f6824f7f347e1e8db55bff62db385c5728b5a
819-
refs/heads/tensorflow: c3ce3ebb3794ff54b2b79e6bf7349f66f5140190
819+
refs/heads/tensorflow: 4aa18dbb1c6080eb8394fc13ee32a92e6da7a5c5
820820
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-11-a: 8126fd7a652e2f70ad6d76505239e34fb2ef3e1a
821821
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-12-a: b3fd3dd84df6717f2e2e9df58c6d7e99fed57086
822822
refs/tags/swift-4.1-DEVELOPMENT-SNAPSHOT-2018-05-13-a: 71135119579039dc321c5f65d870050fe36efda2

branches/tensorflow/lib/Sema/TypeCheckStorage.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1633,8 +1633,6 @@ static AccessorDecl *createGetterPrototype(AbstractStorageDecl *storage,
16331633
ASTContext &ctx) {
16341634
SourceLoc loc = storage->getLoc();
16351635

1636-
GenericEnvironment *genericEnvironmentOfLazyAccessor = nullptr;
1637-
16381636
ParamDecl *selfDecl = nullptr;
16391637
if (storage->getDeclContext()->isTypeContext()) {
16401638
if (storage->getAttrs().hasAttribute<LazyAttr>()) {
@@ -1645,8 +1643,6 @@ static AccessorDecl *createGetterPrototype(AbstractStorageDecl *storage,
16451643
bindingDecl->getPatternEntryForVarDecl(varDecl).getInitContext());
16461644

16471645
selfDecl = bindingInit->getImplicitSelfDecl();
1648-
genericEnvironmentOfLazyAccessor =
1649-
bindingInit->getGenericEnvironmentOfContext();
16501646
}
16511647
}
16521648

@@ -1675,18 +1671,6 @@ static AccessorDecl *createGetterPrototype(AbstractStorageDecl *storage,
16751671
if (selfDecl)
16761672
*getter->getImplicitSelfDeclStorage() = selfDecl;
16771673

1678-
// We need to install the generic environment here because:
1679-
// 1) validating the getter will change the implicit self decl's DC to it,
1680-
// 2) it's likely that the initializer will be type-checked before the
1681-
// accessor (and therefore before the normal installation happens), and
1682-
// 3) type-checking a reference to the self decl will map its type into
1683-
// its context, which requires an environment to be installed on that
1684-
// context.
1685-
// We can safely use the enclosing environment because properties are never
1686-
// differently generic.
1687-
if (genericEnvironmentOfLazyAccessor)
1688-
getter->setGenericEnvironment(genericEnvironmentOfLazyAccessor);
1689-
16901674
if (storage->isGetterMutating())
16911675
getter->setSelfAccessKind(SelfAccessKind::Mutating);
16921676
else

0 commit comments

Comments
 (0)