Skip to content

Commit

Permalink
Remove error check on size_to_type
Browse files Browse the repository at this point in the history
It has been updated to include all values used by Capstone.
  • Loading branch information
hainest committed Dec 27, 2023
1 parent 19a0f7e commit ff6f814
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions instructionAPI/src/x86/decoder.C
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,7 @@ namespace Dyninst { namespace InstructionAPI {
else
effectiveAddr = immAST;
Result_Type type = size_to_type(operand.size);
if(type == invalid_type) {
// err = true;
}

Expression::Ptr memAST;
if(insn->getOperation().getID() == e_lea)
memAST = effectiveAddr;
Expand Down

0 comments on commit ff6f814

Please sign in to comment.