Skip to content

Commit

Permalink
Add comment about LEA
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 27, 2023
1 parent c2c6906 commit 36be2c3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion instructionAPI/src/x86/decoder.C
Original file line number Diff line number Diff line change
Expand Up @@ -268,13 +268,13 @@ namespace Dyninst { namespace InstructionAPI {

Expression::Ptr memAST;
if(insn->getOperation().getID() == e_lea) {
// LEA (Load Effective Address) does not dereference its memory operand
memAST = effectiveAddr;
} else {
Result_Type type = size_to_type(operand.size);
memAST = makeDereferenceExpression(effectiveAddr, type);
}


if(is_cft(insn->getCategory())) {
auto const isCall = is_call(insn->getCategory());
insn->addSuccessor(memAST, isCall, true, false, false);
Expand Down

0 comments on commit 36be2c3

Please sign in to comment.