summaryrefslogtreecommitdiff
path: root/gcc/ada/exp_ch11.adb
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/ada/exp_ch11.adb')
-rw-r--r--gcc/ada/exp_ch11.adb3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/ada/exp_ch11.adb b/gcc/ada/exp_ch11.adb
index 7378885c7c2..2f2506918e8 100644
--- a/gcc/ada/exp_ch11.adb
+++ b/gcc/ada/exp_ch11.adb
@@ -1410,8 +1410,7 @@ package body Exp_Ch11 is
-- No cleanup action needed in thunks associated with interfaces
-- because they only displace the pointer to the object.
- and then not (Is_Subprogram (Current_Scope)
- and then Is_Thunk (Current_Scope))
+ and then not Is_Thunk (Current_Scope)
then
Expand_Cleanup_Actions (Parent (N));
else