Skip to content

Commit

Permalink
Fixed some more errors caught by Clang++.
Browse files Browse the repository at this point in the history
Goubermouche committed Dec 19, 2023
1 parent b1680e0 commit 69bf449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/intermediate_representation/codegen/outputs/elf.cpp
Original file line number Diff line number Diff line change
@@ -174,7 +174,7 @@ namespace sigma::ir {
ASSERT(section.relocation_position == write_position, "invalid relocations");
auto relocations = reinterpret_cast<elf64_relocation*>(&output[write_position]);

for(const handle<compiled_function> function : section.functions) {
for(const handle<compiled_function>& function : section.functions) {
u64 source_offset = function->code_position;

for(handle<symbol_patch> patch = function->first_patch; patch; patch = patch->next) {

0 comments on commit 69bf449

Please sign in to comment.