aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/spirv.zig
diff options
context:
space:
mode:
authorLee Cannon <leecannon@leecannon.xyz>2021-10-29 00:37:25 +0100
committerLee Cannon <leecannon@leecannon.xyz>2021-11-30 23:32:47 +0000
commit85de022c5671d777f62ddff254a814dab05242fc (patch)
tree037f58c4b07d18b80cf48cf74d0f0e8c8866f8f2 /src/codegen/spirv.zig
parent1e0addcf73ee71d23a41b744995848bcca38e8d3 (diff)
downloadzig-85de022c5671d777f62ddff254a814dab05242fc.tar.gz
zig-85de022c5671d777f62ddff254a814dab05242fc.zip
allocgate: std Allocator interface refactor
Diffstat (limited to 'src/codegen/spirv.zig')
-rw-r--r--src/codegen/spirv.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index 67faf32471..39363064a7 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -70,7 +70,7 @@ pub fn writeInstructionWithString(code: *std.ArrayList(Word), opcode: Opcode, ar
/// of data which needs to be persistent over different calls to Decl code generation.
pub const SPIRVModule = struct {
/// A general-purpose allocator which may be used to allocate temporary resources required for compilation.
- gpa: *Allocator,
+ gpa: Allocator,
/// The parent module.
module: *Module,
@@ -103,7 +103,7 @@ pub const SPIRVModule = struct {
/// just the ones for OpLine. Note that OpLine needs the result of OpString, and not that of OpSource.
file_names: std.StringHashMap(ResultId),
- pub fn init(gpa: *Allocator, module: *Module) SPIRVModule {
+ pub fn init(gpa: Allocator, module: *Module) SPIRVModule {
return .{
.gpa = gpa,
.module = module,