File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -6075,9 +6075,10 @@ class DeclChecker : public DeclVisitor<DeclChecker> {
6075
6075
// If the overridden method is declared in a Swift Class Declaration,
6076
6076
// dispatch will use table dispatch. If the override is in an extension
6077
6077
// warn, since it is not added to the class vtable.
6078
+ //
6078
6079
// FIXME: Only warn if the extension is in another module, and if
6079
6080
// 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 ())) {
6081
6082
if (baseDecl->hasKnownSwiftImplementation () &&
6082
6083
!base->isDynamic () &&
6083
6084
override ->getDeclContext ()->isExtensionContext ()) {
You can’t perform that action at this time.
0 commit comments