diff options
author | 2005-01-04 14:50:54 -0700 | |
---|---|---|
committer | 2005-04-07 21:06:11 -0700 | |
commit | 7ee44c48fd749ddfc1231d711595d03593221250 (patch) | |
tree | de7b25910be4bac2cfb4cbb57eb7f73170ee71f2 /simplify.c | |
parent | Fix array size calculation when the last entry is an EXPR_INDEX. (diff) | |
download | sparse-7ee44c48fd749ddfc1231d711595d03593221250.tar.gz sparse-7ee44c48fd749ddfc1231d711595d03593221250.tar.bz2 sparse-7ee44c48fd749ddfc1231d711595d03593221250.zip |
Simplify OP_PTRCAST ops too for now.
Some day we migth do a type-based alias cast, and then we might do
something else, but for now simplification is better than leaving
them in and making analysis harder.
Diffstat (limited to 'simplify.c')
-rw-r--r-- | simplify.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -538,7 +538,7 @@ static int simplify_cast(struct instruction *insn) if (dead_insn(insn, &insn->src, NULL, NULL)) return REPEAT_CSE; - if (insn->opcode == OP_PTRCAST) + if (0 && insn->opcode == OP_PTRCAST) return 0; orig_size = insn->orig_type ? insn->orig_type->bit_size : 0; if (orig_size < 0) |