From ef885a78d606693c73641159731274cc57f6ea98 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Thu, 2 Jun 2022 18:48:32 -0700 Subject: 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. --- src/codegen/c.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/codegen/c.zig') 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), -- cgit v1.2.3