summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-28 12:28:38 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2009-05-28 12:28:38 +0000
commitf2e585c380000bafdb7d53579c7d29bf3c5a0676 (patch)
treea02bfe355d1247a9090ca1d70daef1707220b4fc /gcc/tree-ssa-copy.c
parent2fb613297fa11fd584034d834c785ebe84aac045 (diff)
downloadgcc-f2e585c380000bafdb7d53579c7d29bf3c5a0676.tar.gz
2009-05-28 Benjamin Kosnik <bkoz@redhat.com>
* tree-ssa-copy.c (replace_exp_1): Move op for warning-free use with checking disabled. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@147952 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index bbfc977fa94..d919681fb1a 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -160,9 +160,8 @@ static void
replace_exp_1 (use_operand_p op_p, tree val,
bool for_propagation ATTRIBUTE_UNUSED)
{
- tree op = USE_FROM_PTR (op_p);
-
#if defined ENABLE_CHECKING
+ tree op = USE_FROM_PTR (op_p);
gcc_assert (!(for_propagation
&& TREE_CODE (op) == SSA_NAME
&& TREE_CODE (val) == SSA_NAME