1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-16 07:14:09 +02:00

Fixed mixin issue with indexed argument from readonly pointers

This commit is contained in:
Brian Fiete 2024-11-06 16:35:13 -05:00
parent 09c909567c
commit bb937acfa3

View file

@ -22326,6 +22326,9 @@ void BfExprEvaluator::HandleIndexerExpression(BfIndexerExpression* indexerExpr,
} }
else else
{ {
// We are no longer accessing data within this type
mResultLocalVar = NULL;
target = mModule->LoadValue(target); target = mModule->LoadValue(target);
BfPointerType* pointerType = (BfPointerType*)target.mType; BfPointerType* pointerType = (BfPointerType*)target.mType;
auto underlyingType = pointerType->mElementType; auto underlyingType = pointerType->mElementType;