mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 12:02:21 +02:00
Fixed DoImplicitArgCapture with value composite member
This commit is contained in:
parent
977772de08
commit
268d7f7dba
1 changed files with 1 additions and 1 deletions
|
@ -11492,7 +11492,7 @@ BfTypedValue BfExprEvaluator::DoImplicitArgCapture(BfAstNode* refNode, BfMethodI
|
|||
return lookupVal;
|
||||
}
|
||||
}
|
||||
if (paramType->IsComposite())
|
||||
if ((paramType->IsComposite()) && (methodRefTarget.IsAddr()))
|
||||
return BfTypedValue(mModule->mBfIRBuilder->CreateInBoundsGEP(methodRefTarget.mValue, 0, dataIdx), paramType, true);
|
||||
return BfTypedValue(mModule->ExtractValue(methodRefTarget, dataIdx), paramType);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue