mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Merge pull request #12952 from davidungar/move-in-to-next"
This reverts commit911140c7e1, reversing changes made to5590a2ff91. This broke the incremental bot. rdar://35746584
This commit is contained in:
@@ -542,7 +542,7 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
auto &LLVMContext = getGlobalLLVMContext();
|
||||
|
||||
// Load in bitcode file.
|
||||
assert(Invocation.getFrontendOptions().Inputs.hasUniqueInputFilename() &&
|
||||
assert(Invocation.getFrontendOptions().Inputs.haveUniqueInputFilename() &&
|
||||
"We expect a single input for bitcode input!");
|
||||
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
|
||||
llvm::MemoryBuffer::getFileOrSTDIN(
|
||||
@@ -777,7 +777,7 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
auto SASTF = dyn_cast<SerializedASTFile>(File);
|
||||
return SASTF && SASTF->isSIB();
|
||||
};
|
||||
if (opts.Inputs.hasAPrimaryInputFile()) {
|
||||
if (opts.Inputs.haveAPrimaryInputFile()) {
|
||||
FileUnit *PrimaryFile = PrimarySourceFile;
|
||||
if (!PrimaryFile) {
|
||||
auto Index = opts.Inputs.getRequiredUniquePrimaryInput().Index;
|
||||
|
||||
Reference in New Issue
Block a user