diff options
| author | Meghan Denny <hello@nektro.net> | 2025-02-02 00:03:19 -0800 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2025-02-07 17:52:19 -0800 |
| commit | a8af36ab10562e58ba237fa3dcc582228197402b (patch) | |
| tree | ce1643493977a56f8424fa65c46b9eab3da3dbf5 /src/codegen/c.zig | |
| parent | 84d2c6dc72738bede35651a30dbcdbae3f3b30fc (diff) | |
| download | zig-a8af36ab10562e58ba237fa3dcc582228197402b.tar.gz zig-a8af36ab10562e58ba237fa3dcc582228197402b.zip | |
std.ArrayHashMap: popOrNul() -> pop()
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index b9731716f7..b7824e5311 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -438,7 +438,7 @@ pub const Function = struct { fn allocAlignedLocal(f: *Function, inst: ?Air.Inst.Index, local_type: LocalType) !CValue { const result: CValue = result: { if (f.free_locals_map.getPtr(local_type)) |locals_list| { - if (locals_list.popOrNull()) |local_entry| { + if (locals_list.pop()) |local_entry| { break :result .{ .new_local = local_entry.key }; } } |
