diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 8b36dbc9..81dc19a7 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -3758,6 +3758,12 @@ void BfModule::CreateFakeCallerMethod(const String& funcName) SizedArray 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);