summaryrefslogtreecommitdiff
path: root/gcc/gimple.c
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-15 00:10:00 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2012-02-15 00:10:00 +0000
commit073dcaef73f53a995221a51865129413e027fa30 (patch)
tree18ec09d90fb77ac0d3f7100b09c78c6700285cec /gcc/gimple.c
parente2b2f1e8b94e2107e4d00ca79e2cae1a73b88498 (diff)
downloadgcc-073dcaef73f53a995221a51865129413e027fa30.tar.gz
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: svn+ssh://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;