RecordDependendcyOnTopLeveName BEFORE debugger client.

This commit is contained in:
David Ungar
2019-02-23 11:42:52 -07:00
parent 6093a7fa90
commit c6044bfc07

View File

@@ -414,10 +414,11 @@ void UnqualifiedLookupFactory::fillInLookup() {
DeclContext *const DC = dcAndIsCascadingUse.getValue().DC;
const bool isCascadingUse = dcAndIsCascadingUse.getValue().isCascadingUse;
recordDependencyOnTopLevelName(DC, Name, isCascadingUse);
// TODO: Does the debugger client care about compound names?
if (Name.isSimpleName() && DebugClient &&
DebugClient->lookupOverrides(Name.getBaseName(), DC, Loc,
recordDependencyOnTopLevelName(DC, Name, isCascadingUse);
isOriginallyTypeLookup, Results))
return;