aboutsummaryrefslogtreecommitdiff
path: root/src/codegen.zig
diff options
context:
space:
mode:
authorJakub Konka <kubkon@jakubkonka.com>2024-08-17 08:31:16 +0200
committerJakub Konka <kubkon@jakubkonka.com>2024-08-17 08:31:16 +0200
commitdf9ac485da7c59ddb5dc65e192d5902baf975ddd (patch)
tree03670257529c98e11f48b4e48f9274f250c42693 /src/codegen.zig
parent96441bd829b731cba080753c4833aff3f672a24a (diff)
downloadzig-df9ac485da7c59ddb5dc65e192d5902baf975ddd.tar.gz
zig-df9ac485da7c59ddb5dc65e192d5902baf975ddd.zip
codegen: fix rebase gone wrong
Diffstat (limited to 'src/codegen.zig')
-rw-r--r--src/codegen.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen.zig b/src/codegen.zig
index ae3635ce23..af77dcc50c 100644
--- a/src/codegen.zig
+++ b/src/codegen.zig
@@ -911,14 +911,14 @@ fn genNavRef(
if (is_extern) {
const sym_index = try macho_file.getGlobalSymbol(name.toSlice(ip), lib_name.toSlice(ip));
zo.symbols.items[sym_index].flags.is_extern_ptr = true;
- return GenResult.mcv(.{ .lea_symbol = sym_index });
+ return .{ .mcv = .{ .lea_symbol = sym_index } };
}
const sym_index = try zo.getOrCreateMetadataForNav(macho_file, nav_index);
const sym = zo.symbols.items[sym_index];
if (!single_threaded and is_threadlocal) {
return .{ .mcv = .{ .load_tlv = sym.nlist_idx } };
}
- return GenResult.mcv(.{ .lea_symbol = sym.nlist_idx });
+ return .{ .mcv = .{ .lea_symbol = sym.nlist_idx } };
} else if (lf.cast(.coff)) |coff_file| {
if (is_extern) {
// TODO audit this