Skip to content

Commit

Permalink
[clang][lex] Fix build failure after da95d92
Browse files Browse the repository at this point in the history
  • Loading branch information
jansvoboda11 committed Feb 8, 2024
1 parent c0ff108 commit 687304a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions clang/lib/Lex/PPDirectives.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2306,12 +2306,12 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(

// Load the module to import its macros. We'll make the declarations
// visible when the parser gets here.
// FIXME: Pass SM in here rather than converting it to a path and making the
// module loader convert it back again.
// FIXME: Pass ModuleToImport in here rather than converting it to a path
// and making the module loader convert it back again.
ModuleLoadResult Imported = TheModuleLoader.loadModule(
IncludeTok.getLocation(), Path, Module::Hidden,
/*IsInclusionDirective=*/true);
assert((Imported == nullptr || Imported == SM) &&
assert((Imported == nullptr || Imported == ModuleToImport) &&
"the imported module is different than the suggested one");

if (Imported) {
Expand Down Expand Up @@ -2526,7 +2526,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(

case Import: {
// If this is a module import, make it visible if needed.
assert(SM && "no module to import");
assert(ModuleToImport && "no module to import");

makeModuleVisible(ModuleToImport, EndLoc);

Expand Down

0 comments on commit 687304a

Please sign in to comment.