trans.c (gnat_to_gnu): Fix typo in latest change.
authorEric Botcazou <ebotcazou@adacore.com>
Wed, 3 Jun 2015 09:22:09 +0000 (09:22 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Wed, 3 Jun 2015 09:22:09 +0000 (09:22 +0000)
* gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>: Fix
typo in latest change.

From-SVN: r224066

gcc/ada/ChangeLog
gcc/ada/gcc-interface/trans.c

index 079828ec3f971e4bcb10a8c86a7e5f2d5d384072..dc85f3bb39228d2ed359763e30d750e25f30fbfd 100644 (file)
@@ -1,3 +1,8 @@
+2015-06-03  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * gcc-interface/trans.c (gnat_to_gnu) <N_Simple_Return_Statement>: Fix
+       typo in latest change.
+
 2015-06-01  Eric Botcazou  <ebotcazou@adacore.com>
 
        * gcc-interface/Makefile.in: Fix ARM/Darwin configuration.
index b561bf015a32df569742b755376d31551073d19c..eeb5b4e707ded2047a8723baba29fe5355e7cfbb 100644 (file)
@@ -6809,7 +6809,7 @@ gnat_to_gnu (Node_Id gnat_node)
               self-referential since we want to allocate the fixed size.  */
            if (TREE_CODE (gnu_ret_val) == COMPONENT_REF
                && type_is_padding_self_referential
-                  (TREE_OPERAND (gnu_ret_val, 0)))
+                  (TREE_TYPE (TREE_OPERAND (gnu_ret_val, 0))))
              gnu_ret_val = TREE_OPERAND (gnu_ret_val, 0);
 
            /* If the function returns by direct reference, return a pointer