diff --git a/source/intermediate_representation/codegen/outputs/elf.cpp b/source/intermediate_representation/codegen/outputs/elf.cpp index 56a503c3..4f2efa4d 100644 --- a/source/intermediate_representation/codegen/outputs/elf.cpp +++ b/source/intermediate_representation/codegen/outputs/elf.cpp @@ -174,7 +174,7 @@ namespace sigma::ir { ASSERT(section.relocation_position == write_position, "invalid relocations"); auto relocations = reinterpret_cast(&output[write_position]); - for(const handle function : section.functions) { + for(const handle& function : section.functions) { u64 source_offset = function->code_position; for(handle patch = function->first_patch; patch; patch = patch->next) {