Skip to content

Commit

Permalink
Refactor isCFT in decode_reg
Browse files Browse the repository at this point in the history
  • Loading branch information
hainest committed Dec 27, 2023
1 parent 32aa6f3 commit 5b1735e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions instructionAPI/src/x86/decoder.C
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,9 @@ namespace Dyninst { namespace InstructionAPI {
}

void x86_decoder::decode_reg(Instruction const* insn, cs_x86_op const& operand) {
auto const isCFT = is_cft(insn->getCategory());
auto regAST = makeRegisterExpression(x86::translate_register(operand.reg, mode));

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

0 comments on commit 5b1735e

Please sign in to comment.