Skip to content

Commit a2863a6

Browse files
committed
Added explanation for emitIndexDataIfNeeded call.
1 parent fec411e commit a2863a6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/FrontendTool/FrontendTool.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1283,7 +1283,9 @@ static bool performCompileStepsPostSILGen(CompilerInstance &Instance,
12831283
if (haveModulePath) {
12841284
if (Action == FrontendOptions::ActionType::MergeModules ||
12851285
Action == FrontendOptions::ActionType::EmitModuleOnly) {
1286-
// FIXME: what if MSF is a module?
1286+
// What if MSF is a module?
1287+
// emitIndexDataIfNeeded already handles that case;
1288+
// it'll index everything.
12871289
return emitIndexDataIfNeeded(MSF.dyn_cast<SourceFile *>(), Invocation,
12881290
Instance) ||
12891291
Context.hadError();

0 commit comments

Comments
 (0)