summaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface/trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/gcc-interface/trans.c')
-rw-r--r--gcc/ada/gcc-interface/trans.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c
index 5c85c4aa422..9163eb10a7c 100644
--- a/gcc/ada/gcc-interface/trans.c
+++ b/gcc/ada/gcc-interface/trans.c
@@ -6465,17 +6465,6 @@ gnat_to_gnu (Node_Id gnat_node)
{
tree gnu_field = gnat_to_gnu_field_decl (gnat_field);
- /* If the prefix has incomplete type, try again to translate it.
- The idea is that the translation of the field just above may
- have completed it through gnat_to_gnu_entity, in case it is
- the dereference of an access to Taft Amendment type used in
- the instantiation of a generic body from an external unit. */
- if (!COMPLETE_TYPE_P (TREE_TYPE (gnu_prefix)))
- {
- gnu_prefix = gnat_to_gnu (gnat_prefix);
- gnu_prefix = maybe_implicit_deref (gnu_prefix);
- }
-
gnu_result
= build_component_ref (gnu_prefix, gnu_field,
(Nkind (Parent (gnat_node))