fix killing of rewritten loads
commit700ab906a3842184cf48031a575341e4aae6efb4
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Thu, 16 Feb 2017 04:57:05 +0000 (16 05:57 +0100)
committerChristopher Li <sparse@chrisli.org>
Thu, 16 Feb 2017 12:43:10 +0000 (16 20:43 +0800)
tree35d240009ae5a41d955451d8955e73257e6f665c
parent2e9471d51289b7b67090ee06c475fe7d2b8e6ede
fix killing of rewritten loads

OP_LOADs removed by rewrite_load_instruction() had their ->bb simply
set to NULL the usage of its operand was not adjusted.

Fix that by calling kill_instruction().

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Christopher Li <sparse@chrisli.org>
flow.c
validation/kill-rewritten-load.c [new file with mode: 0644]