From 1908cbef088b8cc1f1106a8cd439db1ec8f7fc35 Mon Sep 17 00:00:00 2001 From: Sahil Date: Wed, 20 Sep 2023 20:39:28 +0000 Subject: [PATCH] PR feedback. Use trace_pc variable. --- clients/drcachesim/tools/invariant_checker.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clients/drcachesim/tools/invariant_checker.cpp b/clients/drcachesim/tools/invariant_checker.cpp index d374a16bdaf..df88bc87b4d 100644 --- a/clients/drcachesim/tools/invariant_checker.cpp +++ b/clients/drcachesim/tools/invariant_checker.cpp @@ -532,8 +532,8 @@ invariant_checker_t::parallel_shard_memref(void *shard_data, const memref_t &mem instr_noalloc_init(drcontext_, &noalloc); instr_t *noalloc_instr = instr_from_noalloc(&noalloc); app_pc next_pc = decode_from_copy( - drcontext_, const_cast(memref.instr.encoding), - reinterpret_cast(memref.instr.addr), noalloc_instr); + drcontext_, const_cast(memref.instr.encoding), trace_pc, + noalloc_instr); if (next_pc == nullptr) { noalloc_instr = nullptr; }