summaryrefslogtreecommitdiff
path: root/gcc/tree-cfg.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-30 13:33:14 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-30 13:33:14 +0000
commit96baa0d7206df634de635a40a8b14e20d8ef57c3 (patch)
tree58c002400e73c78cf0e1561a784e4be7964b1565 /gcc/tree-cfg.c
parent2917ecd30044d75e72331d7aec72cc56f3abda94 (diff)
downloadgcc-96baa0d7206df634de635a40a8b14e20d8ef57c3.tar.gz
2011-09-30 Richard Guenther <rguenther@suse.de>
PR middle-end/50574 * tree-cfg.c (verify_gimple_comparison): Compare component mode sizes for vector comparisons. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@179382 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-cfg.c')
-rw-r--r--gcc/tree-cfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/tree-cfg.c b/gcc/tree-cfg.c
index 20feff91f72..5e5de8f372b 100644
--- a/gcc/tree-cfg.c
+++ b/gcc/tree-cfg.c
@@ -3229,8 +3229,8 @@ verify_gimple_comparison (tree type, tree op0, tree op1)
}
if (TYPE_VECTOR_SUBPARTS (type) != TYPE_VECTOR_SUBPARTS (op0_type)
- || (GET_MODE_SIZE (TYPE_MODE (type))
- != GET_MODE_SIZE (TYPE_MODE (op0_type))))
+ || (GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (type)))
+ != GET_MODE_SIZE (TYPE_MODE (TREE_TYPE (op0_type)))))
{
error ("invalid vector comparison resulting type");
debug_generic_expr (type);