aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-address.c
diff options
context:
space:
mode:
authorZdenek Dvorak <dvorakz@suse.cz>2007-03-08 23:36:47 +0100
committerZdenek Dvorak <rakdver@gcc.gnu.org>2007-03-08 22:36:47 +0000
commit5f787cbcafdf31e0985fea070d0606f248877936 (patch)
treeccf77c3b7d4157a7c2034ee7e9c99f5bf72223bd /gcc/tree-ssa-address.c
parent9d1d1cd449fcf46b652b54ce66d6ed947c3cd523 (diff)
downloadgcc-5f787cbcafdf31e0985fea070d0606f248877936.zip
gcc-5f787cbcafdf31e0985fea070d0606f248877936.tar.gz
gcc-5f787cbcafdf31e0985fea070d0606f248877936.tar.bz2
re PR tree-optimization/31085 (internal compiler error: in create_mem_ref, at tree-ssa-address.c:606)
PR tree-optimization/31085 * tree-ssa-address.c (create_mem_ref): Fix test of type of base. From-SVN: r122724
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r--gcc/tree-ssa-address.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c
index 44a08b9..1279a05 100644
--- a/gcc/tree-ssa-address.c
+++ b/gcc/tree-ssa-address.c
@@ -603,7 +603,8 @@ create_mem_ref (block_stmt_iterator *bsi, tree type, aff_tree *addr)
/* Add the symbol to base, eventually forcing it to register. */
if (parts.base)
{
- gcc_assert (TREE_TYPE (parts.base) == sizetype);
+ gcc_assert (tree_ssa_useless_type_conversion_1
+ (sizetype, TREE_TYPE (parts.base)));
if (parts.index)
{