mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-10 12:32:20 +02:00
Fixed a splat-to-addr bug with methodRef captures
This commit is contained in:
parent
87ab0ad169
commit
e81c0d6dfa
2 changed files with 35 additions and 0 deletions
|
@ -7116,7 +7116,11 @@ BfTypedValue BfExprEvaluator::CreateCall(BfAstNode* targetSrc, const BfTypedValu
|
|||
if (methodRefType->WantsDataPassedAsSplat(dataIdx))
|
||||
SplatArgs(lookupVal, irArgs);
|
||||
else
|
||||
{
|
||||
if (lookupVal.mType->IsComposite())
|
||||
lookupVal = mModule->MakeAddressable(lookupVal, false);
|
||||
irArgs.push_back(lookupVal.mValue);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue