mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 20:42:21 +02:00
Release mode fix
This commit is contained in:
parent
c0e19171d4
commit
15c62583a2
4 changed files with 28 additions and 13 deletions
|
@ -839,7 +839,7 @@ void BeIRCodeGen::Read(BeValue*& beValue)
|
|||
{
|
||||
auto val = values[i];
|
||||
BeConstant* constant = BeValueDynCast<BeConstant>(val);
|
||||
#ifdef _DEBUG
|
||||
|
||||
if (type->IsSizedArray())
|
||||
{
|
||||
auto arrayType = (BeSizedArrayType*)type;
|
||||
|
@ -882,9 +882,9 @@ void BeIRCodeGen::Read(BeValue*& beValue)
|
|||
}
|
||||
|
||||
constStruct->mMemberValues.Add(constant);
|
||||
#endif
|
||||
}
|
||||
beValue = constStruct;
|
||||
|
||||
BE_MEM_END("ParamType_Const_Array");
|
||||
return;
|
||||
}
|
||||
|
@ -1236,7 +1236,7 @@ void BeIRCodeGen::HandleNextCmd()
|
|||
}
|
||||
break;
|
||||
case BfIRCmd_CreateConstAgg:
|
||||
{
|
||||
{
|
||||
CMD_PARAM(BeType*, type);
|
||||
CMD_PARAM(CmdParamVec<BeValue*>, values);
|
||||
|
||||
|
|
|
@ -3005,6 +3005,12 @@ void BeModule::AddInst(BeInst* inst)
|
|||
|
||||
void BeModule::ToString(StringImpl& str, BeType* type)
|
||||
{
|
||||
if (type == NULL)
|
||||
{
|
||||
str += "<MissingType>";
|
||||
return;
|
||||
}
|
||||
|
||||
switch (type->mTypeCode)
|
||||
{
|
||||
case BeTypeCode_None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue