aboutsummaryrefslogtreecommitdiff
path: root/gcc/expr.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/expr.c')
-rw-r--r--gcc/expr.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/expr.c b/gcc/expr.c
index 321abd7..7b362b0 100644
--- a/gcc/expr.c
+++ b/gcc/expr.c
@@ -6523,7 +6523,8 @@ expand_expr (exp, target, tmode, modifier)
tree elem = CONSTRUCTOR_ELTS (init);
for (elem = CONSTRUCTOR_ELTS (init);
- ! tree_int_cst_equal (TREE_PURPOSE (elem), index);
+ (elem
+ && !tree_int_cst_equal (TREE_PURPOSE (elem), index));
elem = TREE_CHAIN (elem))
;