Skip to content

Commit

Permalink
hdl._ir: Remove support for the nonexistent unary "+" operator.
Browse files Browse the repository at this point in the history
  • Loading branch information
wanda-phi authored and whitequark committed Mar 3, 2024
1 parent c2001fe commit 31a12c0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions amaranth/hdl/_ir.py
Original file line number Diff line number Diff line change
Expand Up @@ -710,9 +710,6 @@ def emit_rhs(self, module_idx: int, value: _ast.Value) -> Tuple[_nir.Value, bool
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,
Expand Down

0 comments on commit 31a12c0

Please sign in to comment.