mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Dependency fix for elemented types (ie: pointer types)
This commit is contained in:
parent
20af4e2adc
commit
4b7ad7036c
6 changed files with 65 additions and 1 deletions
|
@ -3490,7 +3490,14 @@ void BfModule::AddDependency(BfType* usedType, BfType* userType, BfDependencyMap
|
|||
|
||||
auto depFlag = flags;
|
||||
if ((flags & (BfDependencyMap::DependencyFlag_MethodGenericArg | BfDependencyMap::DependencyFlag_TypeGenericArg)) != 0)
|
||||
depFlag = BfDependencyMap::DependencyFlag_GenericArgRef; // Will cause a rebuild but not an outright deletion of the type
|
||||
{
|
||||
if (usedType->IsDependendType())
|
||||
{
|
||||
// Cause a rebuild but not an outright deletion of the type
|
||||
// We can only do this if the 'usedType' can actually hold the dependency which can actually trigger a deletion chain
|
||||
depFlag = BfDependencyMap::DependencyFlag_GenericArgRef;
|
||||
}
|
||||
}
|
||||
|
||||
if (!usedType->IsGenericTypeInstance())
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue