File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -244,7 +244,6 @@ struct InterfaceSubContextDelegateImpl: InterfaceSubContextDelegate {
244
244
llvm::StringSaver ArgSaver;
245
245
std::vector<StringRef> GenericArgs;
246
246
CompilerInvocation subInvocation;
247
- std::vector<SupplementaryOutputPaths> ModuleOutputPaths;
248
247
249
248
template <typename ...ArgTypes>
250
249
InFlightDiagnostic diagnose (StringRef interfacePath,
Original file line number Diff line number Diff line change @@ -1349,7 +1349,7 @@ bool InterfaceSubContextDelegateImpl::runInSubCompilerInstance(StringRef moduleN
1349
1349
assert (BuildArgs.size () == GenericArgs.size ());
1350
1350
// Configure inputs
1351
1351
subInvocation.getFrontendOptions ().InputsAndOutputs
1352
- .addPrimaryInputFile (interfacePath);
1352
+ .addInputFile (interfacePath);
1353
1353
BuildArgs.push_back (interfacePath);
1354
1354
subInvocation.setModuleName (moduleName);
1355
1355
BuildArgs.push_back (" -module-name" );
@@ -1366,13 +1366,12 @@ bool InterfaceSubContextDelegateImpl::runInSubCompilerInstance(StringRef moduleN
1366
1366
}
1367
1367
1368
1368
// Configure the outputs in front-end options. There must be an equal number of
1369
- // primary inputs and outputs.
1370
- auto N = subInvocation.getFrontendOptions ().InputsAndOutputs
1371
- .primaryInputCount ();
1372
- std::vector<std::string> outputFiles (N, " /<unused>" );
1369
+ // inputs and outputs.
1370
+ std::vector<std::string> outputFiles{" /<unused>" };
1371
+ std::vector<SupplementaryOutputPaths> ModuleOutputPaths;
1373
1372
ModuleOutputPaths.emplace_back ();
1374
1373
ModuleOutputPaths.back ().ModuleOutputPath = outputPath.str ();
1375
- assert (N == ModuleOutputPaths. size ());
1374
+ assert (subInvocation. getFrontendOptions (). InputsAndOutputs . isWholeModule ());
1376
1375
subInvocation.getFrontendOptions ().InputsAndOutputs
1377
1376
.setMainAndSupplementaryOutputs (outputFiles, ModuleOutputPaths);
1378
1377
You can’t perform that action at this time.
0 commit comments