mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed const bool value for 'the result of this operation is always false'
This commit is contained in:
parent
5c42ea6d2d
commit
9fc6ae9f05
1 changed files with 1 additions and 1 deletions
|
@ -21251,7 +21251,7 @@ bool BfExprEvaluator::CheckConstCompare(BfBinaryOp binaryOp, BfAstNode* opToken,
|
|||
if (constResult == 0)
|
||||
{
|
||||
mModule->Warn(0, "The result of this operation is always 'false'", opToken);
|
||||
mResult = BfTypedValue(mModule->mBfIRBuilder->CreateConst(BfTypeCode_Boolean, 1), mModule->GetPrimitiveType(BfTypeCode_Boolean));
|
||||
mResult = BfTypedValue(mModule->mBfIRBuilder->CreateConst(BfTypeCode_Boolean, 0), mModule->GetPrimitiveType(BfTypeCode_Boolean));
|
||||
return true;
|
||||
}
|
||||
else if (constResult == 1)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue