diff options
Diffstat (limited to 'gcc/stmt.c')
-rw-r--r-- | gcc/stmt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/stmt.c b/gcc/stmt.c index 0b9ce8184f6..baa9cf1a23e 100644 --- a/gcc/stmt.c +++ b/gcc/stmt.c @@ -1634,7 +1634,7 @@ expand_return (tree retval) tree retval_rhs; /* If function wants no value, give it none. */ - if (TREE_CODE (TREE_TYPE (TREE_TYPE (current_function_decl))) == VOID_TYPE) + if (TREE_CODE (function_return_type (current_function_decl)) == VOID_TYPE) { expand_normal (retval); expand_null_return (); |