summaryrefslogtreecommitdiff
path: root/gcc/tree-predcom.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-01-10 21:37:52 +0100
committerJakub Jelinek <jakub@gcc.gnu.org>2014-01-10 21:37:52 +0100
commit4f87d581ad82c70d70ad3a8e94ca5649824b4203 (patch)
tree68034880d924ba6b6ddf0152dd85ba5172f0e3df /gcc/tree-predcom.c
parent5da969605f3461b0df9cbf950a5fc59841a83dde (diff)
downloadgcc-4f87d581ad82c70d70ad3a8e94ca5649824b4203.tar.gz
re PR tree-optimization/59745 (internal compiler error: tree check: expected tree that contains 'typed' structure, have '<invalid tree code>' in operand_equal_p, at fold-const.c:2492)
PR tree-optimization/59745 * tree-predcom.c (tree_predictive_commoning_loop): Call free_affine_expand_cache if giving up because components is NULL. From-SVN: r206540
Diffstat (limited to 'gcc/tree-predcom.c')
-rw-r--r--gcc/tree-predcom.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-predcom.c b/gcc/tree-predcom.c
index 7169b2f68f5..730bad46aa4 100644
--- a/gcc/tree-predcom.c
+++ b/gcc/tree-predcom.c
@@ -2447,6 +2447,7 @@ tree_predictive_commoning_loop (struct loop *loop)
if (!components)
{
free_data_refs (datarefs);
+ free_affine_expand_cache (&name_expansions);
return false;
}