mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
SIL: Verify kinds of vtable entries.
Validate that inherited entries are not left at "normal" state, and that non-overridden entries do not in fact have overrides.
This commit is contained in:
@@ -814,7 +814,12 @@ bool SILDeclRef::requiresNewVTableEntry() const {
|
||||
if (derivativeFunctionIdentifier)
|
||||
if (derivativeFunctionRequiresNewVTableEntry(*this))
|
||||
return true;
|
||||
if (cast<AbstractFunctionDecl>(getDecl())->needsNewVTableEntry())
|
||||
if (!hasDecl())
|
||||
return false;
|
||||
auto fnDecl = dyn_cast<AbstractFunctionDecl>(getDecl());
|
||||
if (!fnDecl)
|
||||
return false;
|
||||
if (fnDecl->needsNewVTableEntry())
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user