Skip to content

Commit 31a12c0

Browse files
wanda-phiwhitequark
authored andcommitted
hdl._ir: Remove support for the nonexistent unary "+" operator.
1 parent c2001fe commit 31a12c0

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

amaranth/hdl/_ir.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -710,9 +710,6 @@ def emit_rhs(self, module_idx: int, value: _ast.Value) -> Tuple[_nir.Value, bool
710710
elif value.operator == 'u':
711711
result = operand_a
712712
signed = False
713-
elif value.operator == '+':
714-
result = operand_a
715-
signed = signed_a
716713
elif value.operator == '-':
717714
operand_a = self.extend(operand_a, signed_a, len(operand_a) + 1)
718715
result = self.emit_operator(module_idx, '-', operand_a,

0 commit comments

Comments
 (0)