1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-10 12:32:20 +02:00

Fixed methodRef bindResult value type

This commit is contained in:
Brian Fiete 2021-12-28 06:08:06 -05:00
parent 98eb8f5840
commit fd8e2dd232
3 changed files with 27 additions and 2 deletions

View file

@ -11957,8 +11957,8 @@ void BfExprEvaluator::Visit(BfDelegateBindExpression* delegateBindExpr)
if (bindResult.mTarget.IsSplat())
target = mModule->AggregateSplat(bindResult.mTarget, &bindResult.mIRArgs[0]);
else
target = mModule->LoadValue(bindResult.mTarget);
target = bindResult.mTarget;
mModule->mBfIRBuilder->CreateStore(target.mValue, elemPtr);
mResult = BfTypedValue(methodRefPtr, methodRefType, true);