We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e8ae7f commit e563296Copy full SHA for e563296
lib/Sema/LookupVisibleDecls.cpp
@@ -771,16 +771,12 @@ class OverrideFilteringConsumer : public VisibleDeclConsumer {
771
Type BaseTy;
772
const DeclContext *DC;
773
LazyResolver *TypeResolver;
774
- bool IsTypeLookup = false;
775
776
OverrideFilteringConsumer(Type BaseTy, const DeclContext *DC,
777
LazyResolver *resolver)
778
- : BaseTy(BaseTy), DC(DC), TypeResolver(resolver) {
+ : BaseTy(BaseTy->getMetatypeInstanceType()),
+ DC(DC), TypeResolver(resolver) {
779
assert(!BaseTy->hasLValueType());
780
- if (auto *MetaTy = BaseTy->getAs<AnyMetatypeType>()) {
781
- BaseTy = MetaTy->getInstanceType();
782
- IsTypeLookup = true;
783
- }
784
assert(DC && BaseTy);
785
}
786
0 commit comments