mirror of
https://github.com/FEX-Emu/FEX.git
synced 2024-12-13 17:15:41 +00:00
FEXLoader/ELFCodeLoader: Use const ref auto to avoid copy
This commit is contained in:
parent
fbe817f1c4
commit
8cf23eba9c
@ -358,7 +358,7 @@ public:
|
||||
};
|
||||
|
||||
bool MapMemory(FEX::HLE::SyscallHandler* const Handler) {
|
||||
for (auto Header : MainElf.phdrs) {
|
||||
for (const auto& Header : MainElf.phdrs) {
|
||||
if (Header.p_type == PT_GNU_STACK) {
|
||||
if (Header.p_flags & PF_X) {
|
||||
ExecutableStack = true;
|
||||
|
Loading…
Reference in New Issue
Block a user