diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-09 17:28:49 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2020-10-09 17:28:49 +0200 |
| commit | 0c6896f449e857baf10371301fe28dfb125a3208 (patch) | |
| tree | 6845aa72ebc8d80531f73ca79761315011987d1a /simplify.c | |
| parent | 26f670cfb6941221acd19b5ed542a6bba60e963c (diff) | |
| parent | a28fcdabb7cf5828caa061f69b30c889f49b18e0 (diff) | |
| download | sparse-dev-0c6896f449e857baf10371301fe28dfb125a3208.tar.gz | |
Merge branch 'misc'
Diffstat (limited to 'simplify.c')
| -rw-r--r-- | simplify.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -1311,13 +1311,11 @@ static int simplify_unop(struct instruction *insn) struct instruction *def; case OP_NOT: - def = insn->src->def; - if (def && def->opcode == OP_NOT) + if (DEF_OPCODE(def, insn->src) == OP_NOT) return replace_with_pseudo(insn, def->src); break; case OP_NEG: - def = insn->src->def; - if (def && def->opcode == OP_NEG) + if (DEF_OPCODE(def, insn->src) == OP_NEG) return replace_with_pseudo(insn, def->src); break; default: |
