mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Frontend] Allow missing files when allowing compiler errors
As with other compilation errors, we want to generate the swiftmodule regardless.
This commit is contained in:
@@ -655,7 +655,7 @@ CompilerInstance::getRecordedBufferID(const InputFile &input,
|
||||
|
||||
// Recover by dummy buffer if requested.
|
||||
if (!buffers.hasValue() && shouldRecover &&
|
||||
input.getType() == file_types::TY_Swift && !input.isPrimary()) {
|
||||
input.getType() == file_types::TY_Swift) {
|
||||
buffers = ModuleBuffers(llvm::MemoryBuffer::getMemBuffer(
|
||||
"// missing file\n", input.getFileName()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user