diff options
author | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-08 22:36:47 +0000 |
---|---|---|
committer | rakdver <rakdver@138bc75d-0d04-0410-961f-82ee72b054a4> | 2007-03-08 22:36:47 +0000 |
commit | 0e0e5aec533d7db59313b64ac59064a9b2bd3305 (patch) | |
tree | ccf77c3b7d4157a7c2034ee7e9c99f5bf72223bd /gcc/tree-ssa-address.c | |
parent | 7986645136c7857b12fa96ea4c33e020deb35180 (diff) | |
download | gcc-0e0e5aec533d7db59313b64ac59064a9b2bd3305.tar.gz |
PR tree-optimization/31085
* tree-ssa-address.c (create_mem_ref): Fix test of type of base.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@122724 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-address.c')
-rw-r--r-- | gcc/tree-ssa-address.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-address.c b/gcc/tree-ssa-address.c index 44a08b9a8b0..1279a056e5f 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) { |