mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 04:22:20 +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);
|
||||
}
|
||||
else
|
||||
else if (!resolvedType->IsGenericParam())
|
||||
{
|
||||
// Always true
|
||||
if (!IsInSpecializedSection())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue