mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-12-10 03:48:29 +00:00
Modify because destructors do cause it to use mem
This commit is contained in:
parent
57929cabcf
commit
4b87f92ed0
@ -1303,7 +1303,19 @@ static_assert(false, "Missing registers saving for linux");
|
|||||||
//
|
//
|
||||||
//
|
//
|
||||||
// Result: we cannot detect if it should be register or memory without knowing the layout of the object.
|
// Result: we cannot detect if it should be register or memory without knowing the layout of the object.
|
||||||
|
//
|
||||||
|
//
|
||||||
|
// It doesn't seem like constructors or copy-constructors matter much.
|
||||||
|
|
||||||
|
if ((pi.flags & PassInfo::PassFlag_ODtor) != 0)
|
||||||
|
{
|
||||||
|
pi.flags |= PassInfo::PassFlag_RetMem;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
return false;
|
return false;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user