aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 5340617..594ccf1 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1848,7 +1848,7 @@ finish_method (tree fndecl)
/* Store the end of the function, so that we get good line number
info for the epilogue. */
if (DECL_STRUCT_FUNCTION (fndecl))
- cfun = DECL_STRUCT_FUNCTION (fndecl);
+ set_cfun (DECL_STRUCT_FUNCTION (fndecl));
else
allocate_struct_function (fndecl);
#ifdef USE_MAPPED_LOCATION