Skip to content

Commit

Permalink
Fix for repz ret
Browse files Browse the repository at this point in the history
  • Loading branch information
lin-toto authored Oct 31, 2024
1 parent b118396 commit 1a0c9f8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def visit_code_block(self, block: gtirb.CodeBlock, function: Function = None):
instructions = list(self.decoder.get_instructions(block))
last_inst = instructions[-1]

if last_inst.mnemonic == "ret":
if non_fallthrough_edges[0].label.type == gtirb.cfg.Edge.Type.Return:
operand_str = "[rsp]"
else:
dest_operand = last_inst.operands[0]
Expand Down

0 comments on commit 1a0c9f8

Please sign in to comment.