diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-03-22 00:23:54 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2022-03-22 15:45:58 -0700 |
| commit | 593130ce0a4b06185fcb4806f8330857a1da9f92 (patch) | |
| tree | ae30c61a06e6cecb97cc760dc6acd0cbfb83c162 /src/Compilation.zig | |
| parent | b74f2924102fe06addb688dc5fd039dc2756f619 (diff) | |
| download | zig-593130ce0a4b06185fcb4806f8330857a1da9f92.tar.gz zig-593130ce0a4b06185fcb4806f8330857a1da9f92.zip | |
stage2: lazy `@alignOf`
Add a `target` parameter to every function that deals with Type and
Value.
Diffstat (limited to 'src/Compilation.zig')
| -rw-r--r-- | src/Compilation.zig | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Compilation.zig b/src/Compilation.zig index 64848659a7..e8b1ebb145 100644 --- a/src/Compilation.zig +++ b/src/Compilation.zig @@ -2781,7 +2781,9 @@ fn processOneJob(comp: *Compilation, job: Job, main_progress_node: *std.Progress .error_msg = null, .decl = decl, .fwd_decl = fwd_decl.toManaged(gpa), - .typedefs = c_codegen.TypedefMap.init(gpa), + .typedefs = c_codegen.TypedefMap.initContext(gpa, .{ + .target = comp.getTarget(), + }), .typedefs_arena = typedefs_arena.allocator(), }; defer dg.fwd_decl.deinit(); |
