aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-eh.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/tree-eh.c')
-rw-r--r--gcc/tree-eh.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-eh.c b/gcc/tree-eh.c
index f19c851..698c654 100644
--- a/gcc/tree-eh.c
+++ b/gcc/tree-eh.c
@@ -1719,7 +1719,7 @@ tree_could_trap_p (tree expr)
bool honor_snans = false;
bool fp_operation = false;
bool honor_trapv = false;
- tree t, base, idx;
+ tree t, base;
if (TREE_CODE_CLASS (code) == tcc_comparison
|| TREE_CODE_CLASS (code) == tcc_unary
@@ -1759,7 +1759,6 @@ tree_could_trap_p (tree expr)
case ARRAY_REF:
base = TREE_OPERAND (expr, 0);
- idx = TREE_OPERAND (expr, 1);
if (tree_could_trap_p (base))
return true;