return NULL_TREE;
/* In case we have a SAVE_EXPR in a conditional context, we need to
- make sure it gets evaluated before the condition. If the OP0 is
- an instrumented array reference, mark it as having side effects so
- it's not folded away. */
- if (flag_sanitize & SANITIZE_BOUNDS)
- {
- tree xop0 = op0;
- while (CONVERT_EXPR_P (xop0))
- xop0 = TREE_OPERAND (xop0, 0);
- if (TREE_CODE (xop0) == ARRAY_REF)
- {
- TREE_SIDE_EFFECTS (xop0) = 1;
- TREE_SIDE_EFFECTS (op0) = 1;
- }
- }
+ make sure it gets evaluated before the condition. */
t = fold_build2 (COMPOUND_EXPR, TREE_TYPE (t), unshare_expr (op0), t);
t = fold_build2 (COMPOUND_EXPR, TREE_TYPE (t), unshare_expr (op1), t);
if (flag_sanitize_undefined_trap_on_error)
return NULL_TREE;
/* In case we have a SAVE_EXPR in a conditional context, we need to
- make sure it gets evaluated before the condition. If the OP0 is
- an instrumented array reference, mark it as having side effects so
- it's not folded away. */
- if (flag_sanitize & SANITIZE_BOUNDS)
- {
- tree xop0 = op0;
- while (CONVERT_EXPR_P (xop0))
- xop0 = TREE_OPERAND (xop0, 0);
- if (TREE_CODE (xop0) == ARRAY_REF)
- {
- TREE_SIDE_EFFECTS (xop0) = 1;
- TREE_SIDE_EFFECTS (op0) = 1;
- }
- }
+ make sure it gets evaluated before the condition. */
t = fold_build2 (COMPOUND_EXPR, TREE_TYPE (t), unshare_expr (op0), t);
t = fold_build2 (TRUTH_OR_EXPR, boolean_type_node, t,
tt ? tt : integer_zero_node);