Skip to content
Snippets Groups Projects
Commit e73ad3ee authored by an7s's avatar an7s
Browse files

Added SetFunction() on newly added instructions

parent be085d13
No related branches found
No related tags found
No related merge requests found
......@@ -180,6 +180,19 @@ static void addOverflowCheck(VariantIR_t *p_virp, Instruction_t *p_instruction,
Instruction_t* popf_i = new Instruction_t;
Instruction_t* popa_i = new Instruction_t;
Function_t* origFunction = p_instruction->GetFunction();
jo_i->SetFunction(origFunction);
jc_i->SetFunction(origFunction);;
jmporigfallthrough_i->SetFunction(origFunction);;
pusha_i->SetFunction(origFunction);;
pushf_i->SetFunction(origFunction);;
pusharg_i->SetFunction(origFunction);;
pushret_i->SetFunction(origFunction);;
poparg_i->SetFunction(origFunction);;
popf_i->SetFunction(origFunction);;
popa_i->SetFunction(origFunction);;
// pin the poparg instruction
virtual_offset_t postDetectorReturn = getAvailableAddress(p_virp);
poparg_a->SetVirtualOffset(postDetectorReturn);
......
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