aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-04 14:50:54 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-04-07 21:06:11 -0700
commit7ee44c48fd749ddfc1231d711595d03593221250 (patch)
treede7b25910be4bac2cfb4cbb57eb7f73170ee71f2 /simplify.c
parentFix array size calculation when the last entry is an EXPR_INDEX. (diff)
downloadsparse-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/simplify.c b/simplify.c
index 8392241..fe57e77 100644
--- a/simplify.c
+++ b/simplify.c
@@ -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)