From d020df06a7becb7e344e3ad39ca98338952c6f3d Mon Sep 17 00:00:00 2001 From: Eric Botcazou Date: Wed, 3 Jun 2015 09:22:09 +0000 Subject: trans.c (gnat_to_gnu): Fix typo in latest change. * gcc-interface/trans.c (gnat_to_gnu) : Fix typo in latest change. From-SVN: r224066 --- gcc/ada/gcc-interface/trans.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/ada/gcc-interface') diff --git a/gcc/ada/gcc-interface/trans.c b/gcc/ada/gcc-interface/trans.c index b561bf0..eeb5b4e 100644 --- a/gcc/ada/gcc-interface/trans.c +++ b/gcc/ada/gcc-interface/trans.c @@ -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 -- cgit v1.1