Skip to content

Commit 6e8c991

Browse files
committed
---
yaml --- r: 349065 b: refs/heads/master c: 87cc09c h: refs/heads/master i: 349063: 9efa442
1 parent 704c099 commit 6e8c991

9 files changed

+1
-22
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: f543d248d68c87654d2ff524479d5a113eb5ffb4
2+
refs/heads/master: 87cc09c02b0c80f9ffc2c965ad2ee31c6780466b
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/AST/Decl.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3876,9 +3876,6 @@ GetDestructorRequest::evaluate(Evaluator &evaluator, ClassDecl *CD) const {
38763876
// Propagate access control and versioned-ness.
38773877
DD->copyFormalAccessFrom(CD, /*sourceIsParentContext*/true);
38783878

3879-
// Wire up generic environment of DD.
3880-
DD->setGenericSignature(CD->getGenericSignatureOfContext());
3881-
38823879
// Mark DD as ObjC, as all dtors are.
38833880
DD->setIsObjC(ctx.LangOpts.EnableObjCInterop);
38843881
if (ctx.LangOpts.EnableObjCInterop)

trunk/lib/ClangImporter/ImportDecl.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1715,7 +1715,6 @@ buildSubscriptGetterDecl(ClangImporter::Implementation &Impl,
17151715
TypeLoc::withoutLoc(elementTy), dc,
17161716
getter->getClangNode());
17171717

1718-
thunk->setGenericSignature(dc->getGenericSignatureOfContext());
17191718
thunk->computeType();
17201719

17211720
thunk->setAccess(getOverridableAccessLevel(dc));
@@ -1769,7 +1768,6 @@ buildSubscriptSetterDecl(ClangImporter::Implementation &Impl,
17691768
valueIndicesPL,
17701769
TypeLoc::withoutLoc(TupleType::getEmpty(C)), dc,
17711770
setter->getClangNode());
1772-
thunk->setGenericSignature(dc->getGenericSignatureOfContext());
17731771
thunk->computeType();
17741772

17751773
thunk->setAccess(getOverridableAccessLevel(dc));
@@ -3735,8 +3733,6 @@ namespace {
37353733
nameLoc, bodyParams, resultTy,
37363734
/*throws*/ false, dc, decl);
37373735

3738-
result->setGenericSignature(dc->getGenericSignatureOfContext());
3739-
37403736
if (!dc->isModuleScopeContext()) {
37413737
if (selfIsInOut)
37423738
result->setSelfAccessKind(SelfAccessKind::Mutating);
@@ -4324,8 +4320,6 @@ namespace {
43244320
// Record the return type.
43254321
result->getBodyResultTypeLoc().setType(resultTy);
43264322

4327-
result->setGenericSignature(dc->getGenericSignatureOfContext());
4328-
43294323
// Optional methods in protocols.
43304324
if (decl->getImplementationControl() == clang::ObjCMethodDecl::Optional &&
43314325
isa<ProtocolDecl>(dc))
@@ -6331,7 +6325,6 @@ ConstructorDecl *SwiftDeclConverter::importConstructor(
63316325
addObjCAttribute(result, selector);
63326326

63336327
// Calculate the function type of the result.
6334-
result->setGenericSignature(dc->getGenericSignatureOfContext());
63356328
result->computeType();
63366329

63376330
Impl.recordImplicitUnwrapForDecl(result,
@@ -6762,8 +6755,6 @@ SwiftDeclConverter::importSubscript(Decl *decl,
67626755
if (setterObjCMethod)
67636756
Impl.importAttributes(setterObjCMethod, setterThunk);
67646757

6765-
subscript->setGenericSignature(dc->getGenericSignatureOfContext());
6766-
67676758
subscript->setIsSetterMutating(false);
67686759
makeComputed(subscript, getterThunk, setterThunk);
67696760
subscript->computeType();

trunk/lib/Sema/DerivedConformanceCodable.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -750,7 +750,6 @@ static FuncDecl *deriveEncodable_encode(DerivedConformance &derived) {
750750
encodeDecl->getAttrs().add(attr);
751751
}
752752

753-
encodeDecl->setGenericSignature(conformanceDC->getGenericSignatureOfContext());
754753
encodeDecl->computeType(FunctionType::ExtInfo().withThrows());
755754

756755
encodeDecl->copyFormalAccessFrom(derived.Nominal,
@@ -1031,7 +1030,6 @@ static ValueDecl *deriveDecodable_init(DerivedConformance &derived) {
10311030
initDecl->getAttrs().add(reqAttr);
10321031
}
10331032

1034-
initDecl->setGenericSignature(conformanceDC->getGenericSignatureOfContext());
10351033
initDecl->computeType(AnyFunctionType::ExtInfo().withThrows());
10361034

10371035
initDecl->copyFormalAccessFrom(derived.Nominal,

trunk/lib/Sema/DerivedConformanceCodingKey.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ static ValueDecl *deriveInitDecl(DerivedConformance &derived, Type paramType,
144144
synthesizer(initDecl);
145145

146146
// Compute the interface type of the initializer.
147-
initDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
148147
initDecl->computeType();
149148

150149
initDecl->setAccess(derived.Nominal->getFormalAccess());

trunk/lib/Sema/DerivedConformanceEquatableHashable.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -765,7 +765,6 @@ deriveEquatable_eq(
765765
eqDecl->setBodySynthesizer(bodySynthesizer);
766766

767767
// Compute the interface type.
768-
eqDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
769768
eqDecl->computeType();
770769

771770
eqDecl->copyFormalAccessFrom(derived.Nominal, /*sourceIsParentContext*/ true);
@@ -890,7 +889,6 @@ deriveHashable_hashInto(
890889
hashDecl->setImplicit();
891890
hashDecl->setBodySynthesizer(bodySynthesizer);
892891

893-
hashDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
894892
hashDecl->computeType();
895893
hashDecl->copyFormalAccessFrom(derived.Nominal);
896894

@@ -1240,7 +1238,6 @@ static ValueDecl *deriveHashable_hashValue(DerivedConformance &derived) {
12401238
getterDecl->setIsTransparent(false);
12411239

12421240
// Compute the interface type of hashValue().
1243-
getterDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
12441241
getterDecl->computeType();
12451242

12461243
getterDecl->copyFormalAccessFrom(derived.Nominal,

trunk/lib/Sema/DerivedConformanceRawRepresentable.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -430,7 +430,6 @@ deriveRawRepresentable_init(DerivedConformance &derived) {
430430
initDecl->setBodySynthesizer(&deriveBodyRawRepresentable_init);
431431

432432
// Compute the interface type of the initializer.
433-
initDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
434433
initDecl->computeType();
435434

436435
initDecl->copyFormalAccessFrom(enumDecl, /*sourceIsParentContext*/true);

trunk/lib/Sema/DerivedConformances.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ DerivedConformance::declareDerivedPropertyGetter(VarDecl *property,
309309
getterDecl->setIsTransparent(false);
310310

311311
// Compute the interface type of the getter.
312-
getterDecl->setGenericSignature(parentDC->getGenericSignatureOfContext());
313312
getterDecl->computeType();
314313

315314
getterDecl->copyFormalAccessFrom(property);

trunk/lib/Sema/TypeCheckProtocol.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2470,7 +2470,6 @@ void ConformanceChecker::recordTypeWitness(AssociatedTypeDecl *assocType,
24702470
SourceLoc(),
24712471
/*genericparams*/nullptr,
24722472
DC);
2473-
aliasDecl->setGenericSignature(DC->getGenericSignatureOfContext());
24742473
aliasDecl->setUnderlyingType(type);
24752474
aliasDecl->computeType();
24762475

0 commit comments

Comments
 (0)