1
0
Fork 0
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:
Brian Fiete 2022-06-22 12:06:40 -07:00
parent e4cac2ca24
commit 36a8c2c6ae
5 changed files with 93 additions and 8 deletions

View file

@ -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