aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-01-18 13:08:56 +0000
committerRichard Guenther <rguenther@suse.de>2012-01-18 13:08:56 +0000
commitbab5186e479c03dcf0897a4555c5613ffdb46308 (patch)
tree4c93320c90a077f2ef33c4a3b2becdaebb893997 /gcc/tree-ssa.c
parent9e2c459bbb772115f13bf3d5ce892b00667d4af0 (diff)
2012-01-18 Richard Guenther <rguenther@suse.de>
* tree-ssa.c (useless_type_conversion_p): Remove special-casing of conversions to void *. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@183271 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa.c')
-rw-r--r--gcc/tree-ssa.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/gcc/tree-ssa.c b/gcc/tree-ssa.c
index c28167e41aa..fb2c005e8b7 100644
--- a/gcc/tree-ssa.c
+++ b/gcc/tree-ssa.c
@@ -1199,10 +1199,6 @@ useless_type_conversion_p (tree outer_type, tree inner_type)
if (TYPE_ADDR_SPACE (TREE_TYPE (outer_type))
!= TYPE_ADDR_SPACE (TREE_TYPE (inner_type)))
return false;
-
- /* If the outer type is (void *), the conversion is not necessary. */
- if (VOID_TYPE_P (TREE_TYPE (outer_type)))
- return true;
}
/* From now on qualifiers on value types do not matter. */