mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #37014 from hamishknight/entry-sign
This commit is contained in:
@@ -1245,9 +1245,9 @@ bool SerializedASTFile::getAllGenericSignatures(
|
||||
return true;
|
||||
}
|
||||
|
||||
Decl *SerializedASTFile::getMainDecl() const {
|
||||
ValueDecl *SerializedASTFile::getMainDecl() const {
|
||||
assert(hasEntryPoint());
|
||||
return File.getDecl(File.getEntryPointDeclID());
|
||||
return cast_or_null<ValueDecl>(File.getDecl(File.getEntryPointDeclID()));
|
||||
}
|
||||
|
||||
const version::Version &SerializedASTFile::getLanguageVersionBuiltWith() const {
|
||||
|
||||
Reference in New Issue
Block a user