Skip to content

Commit

Permalink
Delete unnecessary assert and handle implicit operand for call instru…
Browse files Browse the repository at this point in the history
…ction to ROSE
  • Loading branch information
mxz297 committed Sep 16, 2019
1 parent 29fcdce commit 257219b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 2 additions & 0 deletions dataflowAPI/src/RoseInsnFactory.C
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,10 @@ void RoseInsnX86Factory::massageOperands(const Instruction &insn,
operands.resize(2);
break;
}
case e_call:
case e_push:
case e_pop:
// ROSE does not need implicit registers
operands.resize(1);
break;
case e_cmpxch:
Expand Down
1 change: 0 additions & 1 deletion parseAPI/src/IA_IAPI.C
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,6 @@ bool IA_IAPI::retreat()

size_t IA_IAPI::getSize() const
{
assert(curInsn().isValid());
return curInsn().size();
}

Expand Down

0 comments on commit 257219b

Please sign in to comment.