fn simpleUnOpType( gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index, operand_node: Ast.Node.Index, tag: Zir.Inst.Tag, ) InnerError!Zir.Inst.Ref
gz: *GenZir
scope: *Scope
ri: ResultInfo
node: Ast.Node.Index
operand_node: Ast.Node.Index
tag: Zir.Inst.Tag
OutOfMemory
AnalysisFail
9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760
fn simpleUnOpType( gz: *GenZir, scope: *Scope, ri: ResultInfo, node: Ast.Node.Index, operand_node: Ast.Node.Index, tag: Zir.Inst.Tag, ) InnerError!Zir.Inst.Ref { const operand = try typeExpr(gz, scope, operand_node); const result = try gz.addUnNode(tag, operand, node); return rvalue(gz, ri, result, node); }