Skip to content

Commit 687304a

Browse files
committed
[clang][lex] Fix build failure after da95d92
1 parent c0ff108 commit 687304a

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

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

23172317
if (Imported) {
@@ -2526,7 +2526,7 @@ Preprocessor::ImportAction Preprocessor::HandleHeaderIncludeOrImport(
25262526

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

25312531
makeModuleVisible(ModuleToImport, EndLoc);
25322532

0 commit comments

Comments
 (0)