diff options
author | 2005-01-04 18:55:27 -0700 | |
---|---|---|
committer | 2005-04-07 21:06:12 -0700 | |
commit | 4beb074e5e5b7b335561e0c53a63b3c0f3f849f4 (patch) | |
tree | 94001b397db12ca2dc6c2a7bf24c6aacd2c620e3 /simplify.c | |
parent | Add warning for accessing outside of a symbol (diff) | |
download | sparse-4beb074e5e5b7b335561e0c53a63b3c0f3f849f4.tar.gz sparse-4beb074e5e5b7b335561e0c53a63b3c0f3f849f4.tar.bz2 sparse-4beb074e5e5b7b335561e0c53a63b3c0f3f849f4.zip |
Don't try to recursively check for an associative insn.
This should only happen for a buggy case anyway, but..
Diffstat (limited to 'simplify.c')
-rw-r--r-- | simplify.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -435,6 +435,8 @@ static int simplify_associative_binop(struct instruction *insn) if (pseudo->type != PSEUDO_REG) return 0; def = pseudo->def; + if (def == insn) + return 0; if (def->opcode != insn->opcode) return 0; if (!simple_pseudo(def->src2)) |