mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-12 21:34:11 +02:00
Fixed invalid generic param 'can never be null' warning
This commit is contained in:
parent
45ca40f2c7
commit
b264d7e4cb
1 changed files with 1 additions and 1 deletions
|
@ -1818,7 +1818,7 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
|
||||||
{
|
{
|
||||||
exprEvaluator->mResult = BfTypedValue(mBfIRBuilder->CreateIsNotNull(initValue.mValue), boolType);
|
exprEvaluator->mResult = BfTypedValue(mBfIRBuilder->CreateIsNotNull(initValue.mValue), boolType);
|
||||||
}
|
}
|
||||||
else
|
else if (!resolvedType->IsGenericParam())
|
||||||
{
|
{
|
||||||
// Always true
|
// Always true
|
||||||
if (!IsInSpecializedSection())
|
if (!IsInSpecializedSection())
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue