aboutsummaryrefslogtreecommitdiff
path: root/gcc/fortran/trans-expr.cc
diff options
context:
space:
mode:
authorThomas Schwinge <tschwinge@baylibre.com>2024-03-11 22:38:33 +0100
committerThomas Schwinge <tschwinge@baylibre.com>2024-03-11 22:38:33 +0100
commit4235574518bd016f208b97f6f497978c31771e12 (patch)
tree06362f23752d180e7ce4e6407787beba9634505c /gcc/fortran/trans-expr.cc
parent2cd7fb664ce9617c90b65b399423d330e1a78068 (diff)
parent0d9b4e8647ff01c3d3a782ab26684ca5a7c2f527 (diff)
downloadgcc-4235574518bd016f208b97f6f497978c31771e12.zip
gcc-4235574518bd016f208b97f6f497978c31771e12.tar.gz
gcc-4235574518bd016f208b97f6f497978c31771e12.tar.bz2
Merge commit '46595ce72e5855189e3c60a140c3ca5aaddfb58c^' into HEAD
Diffstat (limited to 'gcc/fortran/trans-expr.cc')
-rw-r--r--gcc/fortran/trans-expr.cc8
1 files changed, 1 insertions, 7 deletions
diff --git a/gcc/fortran/trans-expr.cc b/gcc/fortran/trans-expr.cc
index 244126c..cca2f4e 100644
--- a/gcc/fortran/trans-expr.cc
+++ b/gcc/fortran/trans-expr.cc
@@ -1131,13 +1131,7 @@ gfc_conv_intrinsic_to_class (gfc_se *parmse, gfc_expr *e,
gfc_add_modify (&parmse->pre, ctree, fold_convert (TREE_TYPE (ctree), tmp));
}
- else if (unlimited_poly)
- {
- ctree = gfc_class_len_get (var);
- gfc_add_modify (&parmse->pre, ctree,
- fold_convert (TREE_TYPE (ctree),
- integer_zero_node));
- }
+
/* Pass the address of the class object. */
parmse->expr = gfc_build_addr_expr (NULL_TREE, var);
}