Skip to content

Commit

Permalink
FEXLoader/ELFCodeLoader: Use const ref auto to avoid copy
Browse files Browse the repository at this point in the history
  • Loading branch information
Sonicadvance1 committed Sep 9, 2024
1 parent fbe817f commit 8cf23eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Tools/FEXLoader/ELFCodeLoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ class ELFCodeLoader final : public FEX::CodeLoader {
};

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;
Expand Down

0 comments on commit 8cf23eb

Please sign in to comment.