mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed const stride issues
This commit is contained in:
parent
e60bbdf64f
commit
8c700e6deb
5 changed files with 34 additions and 3 deletions
|
@ -899,8 +899,10 @@ void BeIRCodeGen::Read(BeValue*& beValue)
|
|||
}
|
||||
else if (constType == BfConstType_Undef)
|
||||
{
|
||||
CMD_PARAM(BeType*, type);
|
||||
beValue = mBeModule->CreateUndefValue(type);
|
||||
CMD_PARAM(BeType*, type);
|
||||
auto constUndef = mBeModule->mOwnedValues.Alloc<BeUndefConstant>();
|
||||
constUndef->mType = type;
|
||||
beValue = constUndef;
|
||||
return;
|
||||
}
|
||||
else if (constType == BfConstType_TypeOf)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue