Skip to content

Commit

Permalink
Fix build warnings and a test failure.
Browse files Browse the repository at this point in the history
  • Loading branch information
abhinav92003 committed Nov 19, 2023
1 parent 3cb172e commit abcc9e0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions clients/drcachesim/tests/raw2trace_unit_tests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2766,7 +2766,7 @@ test_ifiltered(void *drcontext)
size_t offs_nop = 0;
size_t offs_move1 = offs_nop + instr_length(drcontext, nop);
size_t offs_jmp = offs_move1 + instr_length(drcontext, move1);
size_t jmp_length = instr_length(drcontext, jmp);
int jmp_length = instr_length(drcontext, jmp);
size_t offs_jcc = offs_jmp + jmp_length;
size_t offs_move2 = offs_jcc + instr_length(drcontext, jcc);
size_t offs_move3 = offs_move2 + instr_length(drcontext, move2);
Expand Down Expand Up @@ -2842,10 +2842,6 @@ test_ifiltered(void *drcontext)
// This has an encoding because the previous dynamic instance was actually
// i-filtered.
check_entry(entries, idx, TRACE_TYPE_ENCODING, -1) &&
#ifdef X86_32
// An extra encoding entry is needed.
check_entry(entries, idx, TRACE_TYPE_ENCODING, -1) &&
#endif
// i-filtered instrs have separate pc entries: one for the instr itself which
// has the instr length, and another for the memref which has a zero size.
check_entry(entries, idx, TRACE_TYPE_INSTR_INDIRECT_JUMP, jmp_length) &&
Expand Down

0 comments on commit abcc9e0

Please sign in to comment.