Merge pull request #37014 from hamishknight/entry-sign

This commit is contained in:
Hamish Knight
2021-05-19 08:32:40 +01:00
committed by GitHub
17 changed files with 312 additions and 191 deletions

View File

@@ -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 {