mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-07 02:18:30 +00:00
mark object-return-value as MEMORY if >64bytes
This commit is contained in:
parent
d2b821e9d1
commit
323671b421
@ -1443,7 +1443,9 @@ namespace SourceHook
|
||||
//
|
||||
// Result: we cannot detect if it should be register or memory without knowing the layout of the object.
|
||||
|
||||
if (hasSpecialFunctions)
|
||||
bool tooBig = (pi.size > (8 * 8));
|
||||
|
||||
if (hasSpecialFunctions || tooBig)
|
||||
{
|
||||
pi.flags |= PassInfo::PassFlag_RetMem;
|
||||
return true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user