mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Added '->' support to nullables and Result<T>
This commit is contained in:
parent
e4cac2ca24
commit
36a8c2c6ae
5 changed files with 93 additions and 8 deletions
|
@ -3409,14 +3409,17 @@ BeStoreInst* BeModule::CreateAlignedStore(BeValue* val, BeValue* ptr, int alignm
|
|||
|
||||
BeGEPInst* BeModule::CreateGEP(BeValue* ptr, BeValue* idx0, BeValue* idx1)
|
||||
{
|
||||
#ifdef _DEBUG
|
||||
BF_ASSERT(ptr->GetType()->IsPointer());
|
||||
#endif
|
||||
|
||||
auto inst = mAlloc.Alloc<BeGEPInst>();
|
||||
inst->mPtr = ptr;
|
||||
inst->mIdx0 = idx0;
|
||||
inst->mIdx1 = idx1;
|
||||
AddInst(inst);
|
||||
|
||||
#ifdef _DEBUG
|
||||
BF_ASSERT(ptr->GetType()->IsPointer());
|
||||
#ifdef _DEBUG
|
||||
inst->GetType();
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue