Skip to content

Commit 757e3b1

Browse files
elshbeccadax
andauthored
Update lib/AST/UnqualifiedLookup.cpp
Co-authored-by: Becca Royal-Gordon <[email protected]>
1 parent 7dc6406 commit 757e3b1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/AST/UnqualifiedLookup.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,8 +439,8 @@ void UnqualifiedLookupFactory::lookForAModuleWithTheGivenName(
439439
// passed, the alias 'Foo' should appear in source files, not 'Bar'.
440440
// If no module aliasing is used, this will simply return the given
441441
// name and 'true' indicating the check passed.
442-
auto checkResult = Ctx.getRealModuleNameOrAlias(givenName);
443-
if (checkResult.second) { // Check passed
442+
// Is this *not* the real name of an aliased module?
443+
if (!Ctx.getRealModuleName(givenName).empty()) {
444444
desiredModule = Ctx.getLoadedModule(givenName);
445445
}
446446

0 commit comments

Comments
 (0)