SIL: Split off reclaimUnresolvedLocalArchetypeDefinitions()

Just to be extra safe, I'm only going to call this when captured local archetypes
are present.
This commit is contained in:
Slava Pestov
2024-05-17 13:01:00 -04:00
parent 237e393dba
commit e8714e7e5a
2 changed files with 12 additions and 2 deletions

View File

@@ -477,6 +477,11 @@ public:
/// This should only be the case during parsing or deserialization.
bool hasUnresolvedLocalArchetypeDefinitions();
/// If we added any instructions that reference unresolved local archetypes
/// and then deleted those instructions without resolving those archetypes,
/// we must reclaim those unresolved local archetypes.
void reclaimUnresolvedLocalArchetypeDefinitions();
/// Get a unique index for a struct or class field in layout order.
///
/// Precondition: \p decl must be a non-resilient struct or class.