mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +02:00
Fixed const evaluation for const bool Type properties
This commit is contained in:
parent
82597ca889
commit
1b04880178
1 changed files with 1 additions and 1 deletions
|
@ -8610,7 +8610,7 @@ bool BfExprEvaluator::LookupTypeProp(BfTypeOfExpression* typeOfExpr, BfIdentifie
|
|||
|
||||
auto _BoolResult = [&](bool val)
|
||||
{
|
||||
mResult = BfTypedValue(mModule->GetConstValue8(val ? 1 : 0), mModule->GetPrimitiveType(BfTypeCode_Boolean));
|
||||
mResult = BfTypedValue(mModule->mBfIRBuilder->CreateConst(BfTypeCode_Boolean, val ? 1 : 0), mModule->GetPrimitiveType(BfTypeCode_Boolean));
|
||||
};
|
||||
|
||||
auto _Int32Result = [&](int32 val)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue