aboutsummaryrefslogtreecommitdiffstats
path: root/gcc-4.8/gcc/fortran/simplify.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc-4.8/gcc/fortran/simplify.c')
-rw-r--r--gcc-4.8/gcc/fortran/simplify.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc-4.8/gcc/fortran/simplify.c b/gcc-4.8/gcc/fortran/simplify.c
index b03096b65..7c21f226d 100644
--- a/gcc-4.8/gcc/fortran/simplify.c
+++ b/gcc-4.8/gcc/fortran/simplify.c
@@ -5528,7 +5528,7 @@ gfc_simplify_shape (gfc_expr *source, gfc_expr *kind)
if (e == &gfc_bad_expr || range_check (e, "SHAPE") == &gfc_bad_expr)
{
gfc_free_expr (result);
- if (t)
+ if (t == SUCCESS)
gfc_clear_shape (shape, source->rank);
return &gfc_bad_expr;
}
@@ -5536,7 +5536,7 @@ gfc_simplify_shape (gfc_expr *source, gfc_expr *kind)
gfc_constructor_append_expr (&result->value.constructor, e, NULL);
}
- if (t)
+ if (t == SUCCESS)
gfc_clear_shape (shape, source->rank);
return result;