aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2003-10-21 10:24:28 -0400
committerJason Merrill <jason@gcc.gnu.org>2003-10-21 10:24:28 -0400
commit064ee155f8d7dfb0987007caff4eb02b30716e70 (patch)
tree961dcd722825aacaa8628fc0a9fb1d8300361177 /gcc/tree.c
parent82c2e3d44ae7b45717e0dd539bd097ff8cd4ab79 (diff)
downloadgcc-064ee155f8d7dfb0987007caff4eb02b30716e70.zip
gcc-064ee155f8d7dfb0987007caff4eb02b30716e70.tar.gz
gcc-064ee155f8d7dfb0987007caff4eb02b30716e70.tar.bz2
* tree.c (build1): Fix off-by-one error.
From-SVN: r72754
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index fef9826..dd8378e 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -2478,7 +2478,7 @@ build1 (enum tree_code code, tree type, tree node)
TREE_SIDE_EFFECTS (t) = 0;
if (!DECL_P (node))
{
- int i = first_rtl_op (TREE_CODE (node));
+ int i = first_rtl_op (TREE_CODE (node)) - 1;
for (; i >= 0; --i)
{
if (TREE_SIDE_EFFECTS (TREE_OPERAND (node, i)))