Skip to content

Commit 3a12a27

Browse files
committed
Merge commit '687304a018d3' from llvm.org/main into next
2 parents 5eee4b7 + 687304a commit 3a12a27

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
@@ -2383,12 +2383,12 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
23832383

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

23942394
if (Imported) {
@@ -2603,7 +2603,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
26032603

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

26082608
makeModuleVisible(ModuleToImport, EndLoc);
26092609

0 commit comments

Comments
 (0)