From 31a12c03d19fef601b6515c431c5b686d2ba3702 Mon Sep 17 00:00:00 2001 From: Wanda Date: Mon, 4 Mar 2024 00:43:18 +0100 Subject: [PATCH] hdl._ir: Remove support for the nonexistent unary `"+"` operator. --- amaranth/hdl/_ir.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/amaranth/hdl/_ir.py b/amaranth/hdl/_ir.py index 44a21d2..ef883bf 100644 --- a/amaranth/hdl/_ir.py +++ b/amaranth/hdl/_ir.py @@ -710,9 +710,6 @@ class NetlistEmitter: elif value.operator == 'u': result = operand_a signed = False - elif value.operator == '+': - result = operand_a - signed = signed_a elif value.operator == '-': operand_a = self.extend(operand_a, signed_a, len(operand_a) + 1) result = self.emit_operator(module_idx, '-', operand_a,