1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 11:38:21 +02:00

Merge branch 'beefytech:master' into master

This commit is contained in:
Jannis vH 2022-03-19 19:53:32 +01:00 committed by GitHub
commit cf26a44195
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1501,8 +1501,6 @@ BfIRValue BfModule::GetDefaultValue(BfType* type)
auto primType = (BfPrimitiveType*)type;
return mBfIRBuilder->CreateConst(primType->mTypeDef->mTypeCode, 0.0);
}
if (type->IsVoid())
return mBfIRBuilder->CreateConstNull(mBfIRBuilder->MapType(type));
return mBfIRBuilder->CreateConstAggZero(mBfIRBuilder->MapType(type));
}