Skip to content
Snippets Groups Projects
Commit c714e2e5 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

Update write to DB sanity checks to make sure direct calls don't have a target set.

parent fe362150
No related branches found
No related tags found
1 merge request!37Update write to DB sanity checks to make sure direct calls don't have a target set.
Pipeline #20425 passed
......@@ -715,7 +715,8 @@ void FileIR_t::writeToDB(ostream *verbose_logging)
auto operands = p_disasm->getOperands();
auto hasTarget = insnp->getTarget() != nullptr;
auto isIndirect = !operands[0]->isConstant();
assert(isIndirect == !hasTarget);
if(isIndirect)
assert(!hasTarget);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment