diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2022-12-07 03:06:10 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-07 03:06:10 -0500 |
| commit | 53a9ee699a35a3d245ab6d1dac1f0687a4dcb42c (patch) | |
| tree | 741ec2205c1c47afbd262044f804b14a7a037fbe /src/codegen/c.zig | |
| parent | 8ccb9a6ad327a4d7fbc321b33d4aa66a27a1f5ee (diff) | |
| parent | 50eb7983cde6e07d2613a6f3ab164ca055d9306f (diff) | |
| download | zig-53a9ee699a35a3d245ab6d1dac1f0687a4dcb42c.tar.gz zig-53a9ee699a35a3d245ab6d1dac1f0687a4dcb42c.zip | |
Merge pull request #13799 from ziglang/close-stage1-issues
close stage1 issues
Diffstat (limited to 'src/codegen/c.zig')
| -rw-r--r-- | src/codegen/c.zig | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig index 0c2822739c..1fd9539730 100644 --- a/src/codegen/c.zig +++ b/src/codegen/c.zig @@ -4972,8 +4972,7 @@ fn airStructFieldPtr(f: *Function, inst: Air.Inst.Index) !CValue { if (f.liveness.isUnused(inst)) { try reap(f, inst, &.{extra.struct_operand}); - // TODO this @as is needed because of a stage1 bug - return @as(CValue, CValue.none); + return .none; } const struct_ptr = try f.resolveInst(extra.struct_operand); @@ -4987,8 +4986,7 @@ fn airStructFieldPtrIndex(f: *Function, inst: Air.Inst.Index, index: u8) !CValue if (f.liveness.isUnused(inst)) { try reap(f, inst, &.{ty_op.operand}); - // TODO this @as is needed because of a stage1 bug - return @as(CValue, CValue.none); + return .none; } const struct_ptr = try f.resolveInst(ty_op.operand); |
