When killing an OP_CALL corresponding to a function pointer the ->func field needs also to have its usage adjusted. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- simplify.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/simplify.c b/simplify.c index cacf81f9f..b80d05b87 100644 --- a/simplify.c +++ b/simplify.c @@ -245,6 +245,8 @@ void kill_insn(struct instruction *insn, int force) return; } kill_use_list(insn->arguments); + if (insn->func->type == PSEUDO_REG) + kill_use(&insn->func); break; case OP_ENTRY: -- 2.11.0 -- To unsubscribe from this list: send the line "unsubscribe linux-sparse" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html