diff options
Diffstat (limited to 'gcc/cp/method.c')
-rw-r--r-- | gcc/cp/method.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/cp/method.c b/gcc/cp/method.c index 2bce7f8c4fb..9470cd5997d 100644 --- a/gcc/cp/method.c +++ b/gcc/cp/method.c @@ -36,6 +36,7 @@ Boston, MA 02111-1307, USA. */ #include "toplev.h" #include "tm_p.h" #include "target.h" +#include "tree-pass.h" /* Various flags to control the mangling process. */ @@ -504,7 +505,9 @@ use_thunk (tree thunk_fndecl, bool emit_p) /* Re-enable access control. */ pop_deferring_access_checks (); - expand_body (finish_function (0)); + thunk_fndecl = finish_function (0); + tree_lowering_passes (thunk_fndecl); + expand_body (thunk_fndecl); } pop_from_top_level (); |