aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2004-12-13 18:10:52 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2004-12-13 18:10:52 +0000
commit3bed147cfe3bf6ed71f5b686bc0256eb52876116 (patch)
treec9d10bd693e869abf5f7c3e5e8dd3d35d691958d /gcc/tree-ssa-dom.c
parent029fc60b148af424bfb61370e2b9be07b39f22d8 (diff)
downloadgcc-3bed147cfe3bf6ed71f5b686bc0256eb52876116.zip
gcc-3bed147cfe3bf6ed71f5b686bc0256eb52876116.tar.gz
gcc-3bed147cfe3bf6ed71f5b686bc0256eb52876116.tar.bz2
* tree-ssa-dom.c (record_edge_info): Fix memory leak.
From-SVN: r92097
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index 5c60979..3a3bdad 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -2453,9 +2453,9 @@ record_edge_info (basic_block bb)
}
}
- if (is_gimple_min_invariant (op0)
- && (TREE_CODE (op1) == SSA_NAME
- || is_gimple_min_invariant (op1)))
+ else if (is_gimple_min_invariant (op0)
+ && (TREE_CODE (op1) == SSA_NAME
+ || is_gimple_min_invariant (op1)))
{
tree inverted = invert_truthvalue (cond);
struct edge_info *edge_info;
@@ -2479,9 +2479,9 @@ record_edge_info (basic_block bb)
}
}
- if (TREE_CODE (op0) == SSA_NAME
- && (is_gimple_min_invariant (op1)
- || TREE_CODE (op1) == SSA_NAME))
+ else if (TREE_CODE (op0) == SSA_NAME
+ && (is_gimple_min_invariant (op1)
+ || TREE_CODE (op1) == SSA_NAME))
{
tree inverted = invert_truthvalue (cond);
struct edge_info *edge_info;