diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2021-04-16 16:20:29 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2021-04-16 16:20:29 -0700 |
| commit | a271f12a149239ab6e6361423589687e32f64cda (patch) | |
| tree | ea35c9389e0b01a24bba957525cabda86e8847ff /src/Compilation.zig | |
| parent | edd75d03e312d6020623df4e06c9bb19c2f217c5 (diff) | |
| download | zig-a271f12a149239ab6e6361423589687e32f64cda.tar.gz zig-a271f12a149239ab6e6361423589687e32f64cda.zip | |
AstGen: store list of imports
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index b3fe13db1b..85a0820f05 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -432,7 +432,7 @@ pub const AllErrors = struct { assert(file.zir_loaded); assert(file.tree_loaded); const Zir = @import("Zir.zig"); - const payload_index = file.zir.extra[Zir.compile_error_extra_index]; + const payload_index = file.zir.extra[@enumToInt(Zir.ExtraIndex.compile_errors)]; assert(payload_index != 0); const header = file.zir.extraData(Zir.Inst.CompileErrors, payload_index); |
