Skip to content

Commit

Permalink
mem2reg: enable following conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugobros3 committed Jan 18, 2024
1 parent 4bd80f7 commit 6686083
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shady/passes/opt_mem2reg.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,15 +137,15 @@ static void visit_ptr_uses(const Node* ptr_value, PtrSourceKnowledge* k, const U
k->leaks = true;
continue;
}
case convert_op:
case reinterpret_op: {
debugv_print("mem2reg leak analysis: following reinterpret instr: ");
log_node(DEBUGV, use->user);
debugv_print(".\n");
visit_ptr_uses(use->user, k, map);
continue;
}
case lea_op:
case convert_op: {
case lea_op: {
//TODO: follow where those derived pointers are used and establish whether they leak themselves
k->leaks = true;
continue;
Expand Down

0 comments on commit 6686083

Please sign in to comment.