mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[AST] Make it possible to find what Swift version was used to build a module
For imported modules the version is empty because they don't carry this information.
This commit is contained in:
@@ -1393,7 +1393,7 @@ ValueDecl *SerializedASTFile::getMainDecl() const {
|
||||
return cast_or_null<ValueDecl>(File.getDecl(File.getEntryPointDeclID()));
|
||||
}
|
||||
|
||||
const version::Version &SerializedASTFile::getLanguageVersionBuiltWith() const {
|
||||
version::Version SerializedASTFile::getLanguageVersionBuiltWith() const {
|
||||
return File.getCompatibilityVersion();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user