pull/64/head
Josselin 6 years ago
parent e4224b4a6a
commit 9648c99dd8
  1. 4
      slither/slithir/convert.py

@ -375,11 +375,9 @@ def propagate_types(ir, node):
using_for = node.function.contract.using_for using_for = node.function.contract.using_for
if isinstance(ir, OperationWithLValue): if isinstance(ir, OperationWithLValue):
# Force assignment in case of missing previous correct type # Force assignment in case of missing previous correct type
if isinstance(ir, Assignment):
ir.lvalue.set_type(ir.rvalue.type)
if not ir.lvalue.type: if not ir.lvalue.type:
if isinstance(ir, Assignment): if isinstance(ir, Assignment):
pass ir.lvalue.set_type(ir.rvalue.type)
elif isinstance(ir, Binary): elif isinstance(ir, Binary):
if BinaryType.return_bool(ir.type): if BinaryType.return_bool(ir.type):
ir.lvalue.set_type(ElementaryType('bool')) ir.lvalue.set_type(ElementaryType('bool'))

Loading…
Cancel
Save