aboutsummaryrefslogtreecommitdiff
path: root/src/link
diff options
context:
space:
mode:
authorVeikka Tuominen <git@vexu.eu>2023-05-10 16:26:54 +0300
committerVeikka Tuominen <git@vexu.eu>2023-05-11 17:23:06 +0300
commitf0fdaf32d3b802e9db16a0753d9ff49a8667089b (patch)
tree5ff1ea4e3897869e3e01e8231acb393b83a7e591 /src/link
parent67afd2a470153681d3a2323ec388e3ecd545cef1 (diff)
downloadzig-f0fdaf32d3b802e9db16a0753d9ff49a8667089b.tar.gz
zig-f0fdaf32d3b802e9db16a0753d9ff49a8667089b.zip
fix incorrect use of mutable pointers to temporary values
Diffstat (limited to 'src/link')
-rw-r--r--src/link/MachO/Atom.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link/MachO/Atom.zig b/src/link/MachO/Atom.zig
index fb05595b7d..970371e455 100644
--- a/src/link/MachO/Atom.zig
+++ b/src/link/MachO/Atom.zig
@@ -116,7 +116,7 @@ pub fn addRelocation(macho_file: *MachO, atom_index: Index, reloc: Relocation) !
return addRelocations(macho_file, atom_index, &[_]Relocation{reloc});
}
-pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []Relocation) !void {
+pub fn addRelocations(macho_file: *MachO, atom_index: Index, relocs: []const Relocation) !void {
const gpa = macho_file.base.allocator;
const gop = try macho_file.relocs.getOrPut(gpa, atom_index);
if (!gop.found_existing) {