summaryrefslogtreecommitdiff
path: root/gcc/fold-const.c
diff options
context:
space:
mode:
authorlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-20 11:16:12 +0000
committerlaw <law@138bc75d-0d04-0410-961f-82ee72b054a4>1998-09-20 11:16:12 +0000
commitf3391f1bad37fbbfea89e364c3d035bd070c1e61 (patch)
tree2def3b798c7d6fd9140075fffd3787ee03ab34aa /gcc/fold-const.c
parent8b07f0eb9a6107ea843e17dd6c4791dc1a0df15d (diff)
downloadgcc-f3391f1bad37fbbfea89e364c3d035bd070c1e61.tar.gz
* fold-const.c (fold): Fix another type in COND_EXPR handling code.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@22499 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/fold-const.c')
-rw-r--r--gcc/fold-const.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/fold-const.c b/gcc/fold-const.c
index 5eab6562282..b7037deeea7 100644
--- a/gcc/fold-const.c
+++ b/gcc/fold-const.c
@@ -6014,7 +6014,8 @@ fold (expr)
t = build (code, type, tem,
TREE_OPERAND (t, 2), TREE_OPERAND (t, 1));
arg0 = tem;
- arg1 = TREE_OPERAND (t, 2);
+ /* arg1 should be the first argument of the new T. */
+ arg1 = TREE_OPERAND (t, 1);
STRIP_NOPS (arg1);
}
}