Skip to content

Commit

Permalink
Remove todos
Browse files Browse the repository at this point in the history
  • Loading branch information
mari-mari committed Aug 15, 2023
1 parent 4bb3dda commit e680e3f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 4 deletions.
1 change: 0 additions & 1 deletion decompiler/frontend/binaryninja/handlers/assignments.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ def lift_set_field(self, assignment: mediumlevelil.MediumLevelILSetVarField, is_
if isinstance(assignment.dest.type, binaryninja.NamedTypeReferenceType) and not (
isinstance(dest_type, Pointer) and isinstance(dest_type.type, Integer)
):
# TODO should we handle unions here? As in lift_get_field?
struct_variable = self._lifter.lift(assignment.dest, is_aliased=True, parent=assignment)
destination = MemberAccess(
offset=assignment.offset,
Expand Down
1 change: 0 additions & 1 deletion decompiler/frontend/binaryninja/handlers/unary.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,6 @@ def _lift_zx_operation(self, instruction: MediumLevelILInstruction, **kwargs) ->

def _lift_load_struct(self, instruction: mediumlevelil.MediumLevelILLoadStruct, **kwargs) -> MemberAccess:
"""Lift a MLIL_LOAD_STRUCT_SSA (struct member access e.g. var#n->x) instruction."""
# TODO handle union
struct_variable = self._lifter.lift(instruction.src)
struct_ptr: Pointer = self._lifter.lift(instruction.src.expr_type)
struct_type: Struct = struct_ptr.type
Expand Down
2 changes: 0 additions & 2 deletions decompiler/structures/pseudo/operations.py
Original file line number Diff line number Diff line change
Expand Up @@ -403,8 +403,6 @@ def struct_variable(self) -> Expression:
return self.operand

def substitute(self, replacee: Expression, replacement: Expression) -> None:
# TODO test what if replacement is also member access
# TODO test if substitute of unary operation is enough
if isinstance(replacee, Variable) and replacee == self.struct_variable and isinstance(replacement, Variable):
self.operands[:] = [replacement]

Expand Down

0 comments on commit e680e3f

Please sign in to comment.