mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Relocate <stdin> correction to clarify why needed.
This commit is contained in:
@@ -782,7 +782,9 @@ static bool performCompile(CompilerInstance &Instance,
|
||||
for (FileUnit *fileUnit : Instance.getMainModule()->getFiles()) {
|
||||
if (auto SASTF = dyn_cast<SerializedASTFile>(fileUnit)) {
|
||||
if (Invocation.getFrontendOptions().Inputs.isFilePrimary(
|
||||
SASTF->getFilename())) {
|
||||
InputFile::
|
||||
convertBufferNameFromLLVM_getFileOrSTDIN_toSwiftConventions(
|
||||
SASTF->getFilename()))) {
|
||||
assert(!PrimaryFile && "Can only handle one primary so far");
|
||||
PrimaryFile = fileUnit;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user