Skip to content

Commit 7f588d8

Browse files
committed
[clang][lex] Fix build failure after da95d92
(cherry picked from commit 687304a)
1 parent 15bea43 commit 7f588d8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/lib/Lex/PPDirectives.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2378,12 +2378,12 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
23782378

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

23892389
if (Imported) {
@@ -2599,7 +2599,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
25992599

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

26042604
makeModuleVisible(ModuleToImport, EndLoc);
26052605

0 commit comments

Comments
 (0)