mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed void enum const loading
This commit is contained in:
parent
1da0c3cae7
commit
16915d2344
1 changed files with 0 additions and 2 deletions
|
@ -5253,8 +5253,6 @@ BfTypedValue BfExprEvaluator::LoadField(BfAstNode* targetSrc, BfTypedValue targe
|
||||||
BF_ASSERT(fieldInstance->mConstIdx != -1);
|
BF_ASSERT(fieldInstance->mConstIdx != -1);
|
||||||
|
|
||||||
auto foreignConst = typeInstance->mConstHolder->GetConstantById(fieldInstance->mConstIdx);
|
auto foreignConst = typeInstance->mConstHolder->GetConstantById(fieldInstance->mConstIdx);
|
||||||
if (resolvedFieldType->IsValuelessType())
|
|
||||||
return BfTypedValue(BfIRValue::sValueless, resolvedFieldType);
|
|
||||||
auto retVal = mModule->ConstantToCurrent(foreignConst, typeInstance->mConstHolder, resolvedFieldType);
|
auto retVal = mModule->ConstantToCurrent(foreignConst, typeInstance->mConstHolder, resolvedFieldType);
|
||||||
return BfTypedValue(retVal, resolvedFieldType);
|
return BfTypedValue(retVal, resolvedFieldType);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue