These functions must have en entry fro almost all instructions but OP_FNEG was missing. Fix this by adding the entry for OP_FNEG. Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@xxxxxxxxx> --- ir.c | 2 +- simplify.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ir.c b/ir.c index 205bd6396..5116beaac 100644 --- a/ir.c +++ b/ir.c @@ -100,7 +100,7 @@ static int validate_insn(struct instruction *insn) case OP_SCAST: case OP_FPCAST: case OP_PTRCAST: - case OP_NOT: case OP_NEG: + case OP_NOT: case OP_NEG: case OP_FNEG: case OP_SLICE: case OP_SYMADDR: case OP_PHISOURCE: diff --git a/simplify.c b/simplify.c index be7208608..eabe63cac 100644 --- a/simplify.c +++ b/simplify.c @@ -256,7 +256,7 @@ int kill_insn(struct instruction *insn, int force) case OP_FPCAST: case OP_PTRCAST: case OP_SETVAL: - case OP_NOT: case OP_NEG: + case OP_NOT: case OP_NEG: case OP_FNEG: case OP_SLICE: kill_use(&insn->src1); break; -- 2.17.1 -- 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