Skip to content

Commit 9b68141

Browse files
committed
---
yaml --- r: 348861 b: refs/heads/master c: 3f66608 h: refs/heads/master i: 348859: befb8a3
1 parent bdfee1f commit 9b68141

File tree

4 files changed

+5
-8
lines changed

4 files changed

+5
-8
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: c1a1ddd458032a12f3be543314e7f9767f11aba3
2+
refs/heads/master: 3f66608cb591fd2f3bae6da3749109a37f894646
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/include/swift/AST/Decl.h

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5824,11 +5824,6 @@ class AbstractFunctionDecl : public GenericContext, public ValueDecl {
58245824
return getBodyKind() == BodyKind::MemberwiseInitializer;
58255825
}
58265826

5827-
void setNeedsNewVTableEntry(bool value) {
5828-
LazySemanticInfo.NeedsNewVTableEntryComputed = true;
5829-
LazySemanticInfo.NeedsNewVTableEntry = value;
5830-
}
5831-
58325827
/// For a method of a class, checks whether it will require a new entry in the
58335828
/// vtable.
58345829
bool needsNewVTableEntry() const;

trunk/lib/Sema/CodeSynthesis.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,6 @@ createDesignatedInitOverride(ClassDecl *classDecl,
702702
// Note that this is a stub implementation.
703703
ctor->setStubImplementation(true);
704704

705-
// Stub constructors don't appear in the vtable.
706-
ctor->setNeedsNewVTableEntry(false);
707705
return ctor;
708706
}
709707

trunk/lib/Sema/TypeCheckDecl.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,6 +1392,10 @@ NeedsNewVTableEntryRequest::evaluate(Evaluator &evaluator,
13921392
if (!ctor->isRequired() && !ctor->isDesignatedInit()) {
13931393
return false;
13941394
}
1395+
1396+
// Stub constructors don't appear in the vtable.
1397+
if (ctor->hasStubImplementation())
1398+
return false;
13951399
}
13961400

13971401
if (auto *accessor = dyn_cast<AccessorDecl>(decl)) {

0 commit comments

Comments
 (0)