Files
swift-mirror/lib/Frontend/ParseableInterfaceModuleLoader.cpp
Harlan Haskins b6cf719e46 [ModuleInterfaces] Add adjacent swiftmodule to dependencies
If there’s a `.swiftmodule` corresponding to the `.swiftinterface` we’re loading, but it’s out of date or otherwise unusable, still make it a dependency of the cached module.

The general assumption with cached modules is that, by virtue of them being in the cache, they have a more up-to-date view of the world than the adjacent compiled module. However, if a new `.swiftmodule` comes along that’s totally valid, we should consider it as having a newer view of the world than the cached one, so we should use it instead.

Fixes rdar://51959788
2019-06-21 13:35:29 -07:00

58 KiB