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/arch/sparc64/CodeGen.zig | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/arch/sparc64/CodeGen.zig') diff --git a/src/arch/sparc64/CodeGen.zig b/src/arch/sparc64/CodeGen.zig index eb9d9a4ad9..780f01cdd4 100644 --- a/src/arch/sparc64/CodeGen.zig +++ b/src/arch/sparc64/CodeGen.zig @@ -604,6 +604,9 @@ fn genBody(self: *Self, body: []const Air.Inst.Index) InnerError!void { .prefetch => @panic("TODO try self.airPrefetch(inst)"), .mul_add => @panic("TODO try self.airMulAdd(inst)"), + .@"try" => @panic("TODO try self.airTry(inst)"), + .try_ptr => @panic("TODO try self.airTryPtr(inst)"), + .dbg_var_ptr, .dbg_var_val, => try self.airDbgVar(inst), -- cgit v1.2.3