Skip to content

Commit 7dcab12

Browse files
author
Brian King
committed
Update PR comments
1 parent f7a7ee9 commit 7dcab12

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/Sema/TypeCheckDecl.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6075,9 +6075,10 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
60756075
// If the overridden method is declared in a Swift Class Declaration,
60766076
// dispatch will use table dispatch. If the override is in an extension
60776077
// warn, since it is not added to the class vtable.
6078+
//
60786079
// FIXME: Only warn if the extension is in another module, and if
60796080
// it is in the same module, update the vtable.
6080-
if (auto baseDecl = dyn_cast<ClassDecl>(base->getDeclContext())) {
6081+
if (auto *baseDecl = dyn_cast<ClassDecl>(base->getDeclContext())) {
60816082
if (baseDecl->hasKnownSwiftImplementation() &&
60826083
!base->isDynamic() &&
60836084
override->getDeclContext()->isExtensionContext()) {

0 commit comments

Comments
 (0)