mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Merge branch 'beefytech:master' into master
This commit is contained in:
commit
cf26a44195
1 changed files with 0 additions and 2 deletions
|
@ -1501,8 +1501,6 @@ BfIRValue BfModule::GetDefaultValue(BfType* type)
|
||||||
auto primType = (BfPrimitiveType*)type;
|
auto primType = (BfPrimitiveType*)type;
|
||||||
return mBfIRBuilder->CreateConst(primType->mTypeDef->mTypeCode, 0.0);
|
return mBfIRBuilder->CreateConst(primType->mTypeDef->mTypeCode, 0.0);
|
||||||
}
|
}
|
||||||
if (type->IsVoid())
|
|
||||||
return mBfIRBuilder->CreateConstNull(mBfIRBuilder->MapType(type));
|
|
||||||
return mBfIRBuilder->CreateConstAggZero(mBfIRBuilder->MapType(type));
|
return mBfIRBuilder->CreateConstAggZero(mBfIRBuilder->MapType(type));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue