From 69bf449b282615bf280e2e9fb03f7def8ae6b223 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0imon=20Tup=C3=BD?= Date: Tue, 19 Dec 2023 17:24:43 +0100 Subject: [PATCH] Fixed some more errors caught by Clang++. --- source/intermediate_representation/codegen/outputs/elf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {