aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorMeghan Denny <hello@nektro.net>2025-02-02 00:03:19 -0800
committerAndrew Kelley <andrew@ziglang.org>2025-02-07 17:52:19 -0800
commita8af36ab10562e58ba237fa3dcc582228197402b (patch)
treece1643493977a56f8424fa65c46b9eab3da3dbf5 /src/codegen/c.zig
parent84d2c6dc72738bede35651a30dbcdbae3f3b30fc (diff)
downloadzig-a8af36ab10562e58ba237fa3dcc582228197402b.tar.gz
zig-a8af36ab10562e58ba237fa3dcc582228197402b.zip
std.ArrayHashMap: popOrNul() -> pop()
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig2
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 };
}
}