mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] Upgrade MainDecl to a ValueDecl
This will make it easier to store in a SILDeclRef.
This commit is contained in:
@@ -1237,9 +1237,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