mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-09 20:12:21 +02:00
Fixed FORCELINK with srets
This commit is contained in:
parent
0a407b0913
commit
7a08e7bf11
1 changed files with 6 additions and 0 deletions
|
@ -3758,6 +3758,12 @@ void BfModule::CreateFakeCallerMethod(const String& funcName)
|
|||
SizedArray<BfIRValue, 8> args;
|
||||
BfExprEvaluator exprEvaluator(this);
|
||||
|
||||
if (mCurMethodInstance->HasStructRet())
|
||||
{
|
||||
auto retPtrType = CreatePointerType(mCurMethodInstance->mReturnType);
|
||||
exprEvaluator.PushArg(GetDefaultTypedValue(retPtrType, true, BfDefaultValueKind_Const), args);
|
||||
}
|
||||
|
||||
if (mCurMethodInstance->HasThis())
|
||||
{
|
||||
auto thisValue = GetDefaultTypedValue(mCurMethodInstance->GetOwner(), true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue