mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Enum fixes, small reflection fixes
This commit is contained in:
parent
973b5e73cf
commit
dffde00a6a
11 changed files with 100 additions and 35 deletions
|
@ -16163,6 +16163,7 @@ void BfExprEvaluator::PerformUnaryOperation_OnResult(BfExpression* unaryOpExpr,
|
|||
MarkResultUsed();
|
||||
|
||||
mModule->FixIntUnknown(mResult);
|
||||
mModule->PopulateType(mResult.mType);
|
||||
auto ptrType = mModule->CreatePointerType(mResult.mType);
|
||||
if ((!CheckModifyResult(mResult, unaryOpExpr, "take address of")) || (mResult.mType->IsValuelessType()))
|
||||
{
|
||||
|
@ -16194,6 +16195,7 @@ void BfExprEvaluator::PerformUnaryOperation_OnResult(BfExpression* unaryOpExpr,
|
|||
return;
|
||||
}
|
||||
|
||||
mModule->PopulateType(resolvedType);
|
||||
if (resolvedType->IsValuelessType())
|
||||
mResult = BfTypedValue(mModule->mBfIRBuilder->GetFakeVal(), resolvedType, true);
|
||||
else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue