diff options
| author | fn ⌃ ⌥ <70830482+FnControlOption@users.noreply.github.com> | 2023-02-05 05:57:58 -0800 |
|---|---|---|
| committer | fn ⌃ ⌥ <70830482+FnControlOption@users.noreply.github.com> | 2023-02-05 05:57:58 -0800 |
| commit | baa877fd129c7c6eb3c87c3e219bb4dede67b0a0 (patch) | |
| tree | d707ff596a43200239b065d953f80811e5763a03 /src/Compilation.zig | |
| parent | 8e2af21cd99d1c033146b1ab15ab743533cbd743 (diff) | |
| parent | a5b34a61ab61882bf55d87e4cbc8186215ecf320 (diff) | |
| download | zig-baa877fd129c7c6eb3c87c3e219bb4dede67b0a0.tar.gz zig-baa877fd129c7c6eb3c87c3e219bb4dede67b0a0.zip | |
Merge branch 'master' into lzma
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 09c6e1c686..e09b8f18ab 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -385,7 +385,7 @@ pub const AllErrors = struct { count: u32 = 1, /// Does not include the trailing newline. source_line: ?[]const u8, - notes: []Message = &.{}, + notes: []const Message = &.{}, reference_trace: []Message = &.{}, /// Splits the error message up into lines to properly indent them @@ -3299,7 +3299,7 @@ fn processOneJob(comp: *Compilation, job: Job) !void { const gpa = comp.gpa; const module = comp.bin_file.options.module.?; const decl = module.declPtr(decl_index); - comp.bin_file.updateDeclLineNumber(module, decl) catch |err| { + comp.bin_file.updateDeclLineNumber(module, decl_index) catch |err| { try module.failed_decls.ensureUnusedCapacity(gpa, 1); module.failed_decls.putAssumeCapacityNoClobber(decl_index, try Module.ErrorMsg.create( gpa, |
