mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed dep issue during ConstantToCurrent with null mCurTypeInstance
This commit is contained in:
parent
faefc68cc0
commit
662566ed16
1 changed files with 2 additions and 1 deletions
|
@ -11258,6 +11258,7 @@ BfIRValue BfModule::ConstantToCurrent(BfConstant* constant, BfIRConstHolder* con
|
|||
if (constant->mConstType == Beefy::BfConstType_TypeOf)
|
||||
{
|
||||
auto constTypeOf = (BfTypeOf_Const*)constant;
|
||||
if (mCurTypeInstance != NULL)
|
||||
AddDependency(constTypeOf->mType, mCurTypeInstance, BfDependencyMap::DependencyFlag_ExprTypeReference);
|
||||
return CreateTypeDataRef(constTypeOf->mType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue