aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-02-15 00:10:00 +0000
committerEric Botcazou <ebotcazou@adacore.com>2012-02-15 00:10:00 +0000
commit2f3164db9844e45be3158b055e9fe6e5f207215a (patch)
tree18ec09d90fb77ac0d3f7100b09c78c6700285cec /gcc/gimple.c
parent01d8d3bdcb0ef1a9c1849806e2bfa6ae7ace912d (diff)
PR lto/52178
* gimple.c (iterative_hash_gimple_type): Use RECORD_OR_UNION_TYPE_P. (iterative_hash_canonical_type): Likewise. * tree-ssa-pre.c (fini_pre): Clean up the CFG only after purging all the dead edges. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@184246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple.c')
-rw-r--r--gcc/gimple.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/gcc/gimple.c b/gcc/gimple.c
index 9a6ed671f84..805ad2d77b2 100644
--- a/gcc/gimple.c
+++ b/gcc/gimple.c
@@ -4140,9 +4140,7 @@ iterative_hash_gimple_type (tree type, hashval_t val,
v = iterative_hash_hashval_t (na, v);
}
- if (TREE_CODE (type) == RECORD_TYPE
- || TREE_CODE (type) == UNION_TYPE
- || TREE_CODE (type) == QUAL_UNION_TYPE)
+ if (RECORD_OR_UNION_TYPE_P (type))
{
unsigned nf;
tree f;
@@ -4373,9 +4371,7 @@ iterative_hash_canonical_type (tree type, hashval_t val)
v = iterative_hash_hashval_t (na, v);
}
- if (TREE_CODE (type) == RECORD_TYPE
- || TREE_CODE (type) == UNION_TYPE
- || TREE_CODE (type) == QUAL_UNION_TYPE)
+ if (RECORD_OR_UNION_TYPE_P (type))
{
unsigned nf;
tree f;