1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed invalid generic param 'can never be null' warning

This commit is contained in:
Brian Fiete 2020-12-05 09:22:59 -08:00
parent 45ca40f2c7
commit b264d7e4cb

View file

@ -1818,7 +1818,7 @@ BfLocalVariable* BfModule::HandleVariableDeclaration(BfVariableDeclaration* varD
{
exprEvaluator->mResult = BfTypedValue(mBfIRBuilder->CreateIsNotNull(initValue.mValue), boolType);
}
else
else if (!resolvedType->IsGenericParam())
{
// Always true
if (!IsInSpecializedSection())