aboutsummaryrefslogtreecommitdiff
path: root/src/Cache.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2021-05-12 22:50:47 -0700
committerAndrew Kelley <andrew@ziglang.org>2021-05-12 22:50:47 -0700
commitc102e1371088cf34aac28627a8523e66f0525098 (patch)
tree786815a6ee8539a363a2c7f5268031d531f9f317 /src/Cache.zig
parenta7aa3ca66c271bc6f2905e4c3f0dd78763584d5b (diff)
downloadzig-c102e1371088cf34aac28627a8523e66f0525098.tar.gz
zig-c102e1371088cf34aac28627a8523e66f0525098.zip
stage2: fix source location of Decl compile errors
In `Module.semaDecl`, the source location being used was double-relative to the `Decl`, causing a crash when trying to compute byte offset for the compile error. Change the source location to node_offset = 0 since the scope being used makes the source location relative to the Decl, which already has the source node index populated.
Diffstat (limited to 'src/Cache.zig')
0 files changed, 0 insertions, 0 deletions