mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #17186 from jrose-apple/bridge-over-troubled-imports
[Serialization] Always list the bridging header before any imports rdar://problem/40471329
This commit is contained in:
@@ -1456,6 +1456,17 @@ Status ModuleFile::associateWithFileContext(FileUnit *file,
|
||||
return getStatus();
|
||||
}
|
||||
|
||||
std::unique_ptr<llvm::MemoryBuffer> ModuleFile::takeBufferForDiagnostics() {
|
||||
assert(getStatus() != Status::Valid);
|
||||
|
||||
// Today, the only buffer that might have diagnostics in them is the input
|
||||
// buffer, and even then only if it has imported module contents.
|
||||
if (!importedHeaderInfo.contents.empty())
|
||||
return std::move(ModuleInputBuffer);
|
||||
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
ModuleFile::~ModuleFile() { }
|
||||
|
||||
void ModuleFile::lookupValue(DeclName name,
|
||||
|
||||
Reference in New Issue
Block a user