diff options
Diffstat (limited to 'src/Module.zig')
| -rw-r--r-- | src/Module.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Module.zig b/src/Module.zig index ecfc15a319..3892b35aea 100644 --- a/src/Module.zig +++ b/src/Module.zig @@ -558,14 +558,14 @@ pub const Decl = struct { if (!decl.has_align) return .none; assert(decl.zir_decl_index != 0); const zir = decl.getFileScope().zir; - return @intToEnum(Zir.Inst.Ref, zir.extra[decl.zir_decl_index + 7]); + return @intToEnum(Zir.Inst.Ref, zir.extra[decl.zir_decl_index + 8]); } pub fn zirLinksectionRef(decl: Decl) Zir.Inst.Ref { if (!decl.has_linksection_or_addrspace) return .none; assert(decl.zir_decl_index != 0); const zir = decl.getFileScope().zir; - const extra_index = decl.zir_decl_index + 7 + @boolToInt(decl.has_align); + const extra_index = decl.zir_decl_index + 8 + @boolToInt(decl.has_align); return @intToEnum(Zir.Inst.Ref, zir.extra[extra_index]); } @@ -573,7 +573,7 @@ pub const Decl = struct { if (!decl.has_linksection_or_addrspace) return .none; assert(decl.zir_decl_index != 0); const zir = decl.getFileScope().zir; - const extra_index = decl.zir_decl_index + 7 + @boolToInt(decl.has_align) + 1; + const extra_index = decl.zir_decl_index + 8 + @boolToInt(decl.has_align) + 1; return @intToEnum(Zir.Inst.Ref, zir.extra[extra_index]); } |
