Skip to content

Commit

Permalink
Mute overzealous call argument error
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Hennenfent committed Apr 8, 2020
1 parent a150f02 commit cae0b91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion manticore/native/cpu/arm.py
Original file line number Diff line number Diff line change
Expand Up @@ -1516,7 +1516,8 @@ def _bitwise_instruction(cpu, operation, dest, op1, op2=None):
op2_val, carry = op2.read(with_carry=True)
result = operation(op1.read(), op2_val)
else:
op1_val, carry = op1.read(with_carry=True)
# We _do_ use this form, contrary to what LGTM says
op1_val, carry = op1.read(with_carry=True) # lgtm [py/call/wrong-arguments]
result = operation(op1_val)
if dest is not None:
dest.write(result)
Expand Down

1 comment on commit cae0b91

@bradlarsen
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed! LGTM gets confused by the (actually confusing) control flow.

Please sign in to comment.