mirror of
https://github.com/lifting-bits/remill
synced 2026-06-21 13:56:07 +00:00
TestRunner: copy next pc with proper type
This commit is contained in:
@@ -260,10 +260,8 @@ LiftingTester::LiftInstructionFunction(std::string_view fname,
|
||||
auto pc_ref = remill::LoadProgramCounterRef(&target_func->getEntryBlock());
|
||||
auto next_pc_ref =
|
||||
remill::LoadNextProgramCounterRef(&target_func->getEntryBlock());
|
||||
bldr.CreateStore(
|
||||
bldr.CreateLoad(llvm::IntegerType::get(target_func->getContext(), 32),
|
||||
next_pc_ref),
|
||||
pc_ref);
|
||||
auto pc_type = this->arch->AddressType();
|
||||
bldr.CreateStore(bldr.CreateLoad(pc_type, next_pc_ref), pc_ref);
|
||||
|
||||
bldr.CreateRet(bldr.CreateLoad(this->lifter->GetMemoryType(), mem_ptr_ref));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user