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 7dc6406 commit 757e3b1Copy full SHA for 757e3b1
lib/AST/UnqualifiedLookup.cpp
@@ -439,8 +439,8 @@ void UnqualifiedLookupFactory::lookForAModuleWithTheGivenName(
439
// passed, the alias 'Foo' should appear in source files, not 'Bar'.
440
// If no module aliasing is used, this will simply return the given
441
// name and 'true' indicating the check passed.
442
- auto checkResult = Ctx.getRealModuleNameOrAlias(givenName);
443
- if (checkResult.second) { // Check passed
+ // Is this *not* the real name of an aliased module?
+ if (!Ctx.getRealModuleName(givenName).empty()) {
444
desiredModule = Ctx.getLoadedModule(givenName);
445
}
446
0 commit comments