1
0
Fork 0
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:
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); exprEvaluator->mResult = BfTypedValue(mBfIRBuilder->CreateIsNotNull(initValue.mValue), boolType);
} }
else else if (!resolvedType->IsGenericParam())
{ {
// Always true // Always true
if (!IsInSpecializedSection()) if (!IsInSpecializedSection())