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

added sanity checkong that a memory operand is found

parent ecbe7daa
No related branches found
No related tags found
No related merge requests found
......@@ -449,6 +449,7 @@ void Unpin_t::DoUpdateForInstructions()
const auto the_arg_it=find_if(ALLOF(operands),[](const DecodedOperand_t& op){ return op.isMemory() && op.getString()!=""; });
DataScoop_t* wrt=dynamic_cast<DataScoop_t*>(reloc->GetWRT());
assert(wrt);
assert(the_arg_it!=operands.end());
const auto &the_arg=*the_arg_it;
virtual_offset_t rel_addr1=the_arg.getMemoryDisplacement(); // ->Memory.Displacement;
//virtual_offset_t rel_addr1=the_arg->Memory.Displacement;
......
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