aboutsummaryrefslogtreecommitdiff
path: root/src/codegen/c.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2022-06-02 18:48:32 -0700
committerJakub Konka <kubkon@jakubkonka.com>2022-06-05 10:37:08 +0200
commitef885a78d606693c73641159731274cc57f6ea98 (patch)
tree6c962ecd3098f25ca6e5da87cd018fb90c6f1520 /src/codegen/c.zig
parent0224ad19b82bb307a2c246f2e30826af599aa895 (diff)
downloadzig-ef885a78d606693c73641159731274cc57f6ea98.tar.gz
zig-ef885a78d606693c73641159731274cc57f6ea98.zip
stage2: implement the new "try" ZIR/AIR instruction
Implements semantic analysis for the new try/try_inline ZIR instruction. Adds the new try/try_ptr AIR instructions and implements them for the LLVM backend. Fixes not calling rvalue() for tryExpr in AstGen. This is part of an effort to implement #11772.
Diffstat (limited to 'src/codegen/c.zig')
-rw-r--r--src/codegen/c.zig3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 1e45090648..597b3b0f6b 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -1875,6 +1875,9 @@ fn genBody(f: *Function, body: []const Air.Inst.Index) error{ AnalysisFail, OutO
.union_init => try airUnionInit(f, inst),
.prefetch => try airPrefetch(f, inst),
+ .@"try" => @panic("TODO"),
+ .try_ptr => @panic("TODO"),
+
.dbg_var_ptr,
.dbg_var_val,
=> try airDbgVar(f, inst),