summaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-21 14:24:28 +0000
committerjason <jason@138bc75d-0d04-0410-961f-82ee72b054a4>2003-10-21 14:24:28 +0000
commitc04e660770ec747e758ec1ea2687219114f160dd (patch)
tree961dcd722825aacaa8628fc0a9fb1d8300361177 /gcc/tree.c
parent43a97c65ab677bce74c4a62beaa749111827db0b (diff)
downloadgcc-c04e660770ec747e758ec1ea2687219114f160dd.tar.gz
* tree.c (build1): Fix off-by-one error.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@72754 138bc75d-0d04-0410-961f-82ee72b054a4
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 fef98267305..dd8378e8ec5 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)))