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:
@@ -83,7 +83,7 @@ struct InvocationOptions {
|
||||
// Assert invocation with a primary file. We want to avoid full typechecking
|
||||
// for all files.
|
||||
assert(!this->PrimaryFile.empty());
|
||||
assert(this->Invok.getFrontendOptions().Inputs.hasUniquePrimaryInput() &&
|
||||
assert(this->Invok.getFrontendOptions().Inputs.haveUniquePrimaryInput() &&
|
||||
"Must have exactly one primary input for code completion, etc.");
|
||||
}
|
||||
|
||||
@@ -355,7 +355,7 @@ static void setModuleName(CompilerInvocation &Invocation) {
|
||||
|
||||
StringRef Filename = Invocation.getOutputFilename();
|
||||
if (Filename.empty()) {
|
||||
if (!Invocation.getFrontendOptions().Inputs.hasInputFilenames()) {
|
||||
if (!Invocation.getFrontendOptions().Inputs.haveInputFilenames()) {
|
||||
Invocation.setModuleName("__main__");
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user