mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-07 15:31:26 +12:00
Fix vm::reserve_map NRVO
This commit is contained in:
parent
7e2bb0fd1f
commit
20cb19618d
1 changed files with 6 additions and 1 deletions
|
@ -1079,7 +1079,12 @@ namespace vm
|
||||||
// Fixed address allocation
|
// Fixed address allocation
|
||||||
area = _get_map(location, addr);
|
area = _get_map(location, addr);
|
||||||
|
|
||||||
return !area ? _map(addr, area_size, flags) : area;
|
if (area)
|
||||||
|
{
|
||||||
|
return area;
|
||||||
|
}
|
||||||
|
|
||||||
|
return _map(addr, area_size, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
inline namespace ps3_
|
inline namespace ps3_
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue