@@ -3134,7 +3134,7 @@ finish_function_contracts (tree fndecl)
3134
3134
/* If this is not a client side check and definition side checks are
3135
3135
disabled, do nothing. */
3136
3136
if (!flag_contracts_nonattr_definition_check
3137
- && !DECL_CONTRACT_WRAPPER (fndecl))
3137
+ && !DECL_CONTRACT_WRAPPER (fndecl))
3138
3138
return ;
3139
3139
3140
3140
for (tree ca = DECL_CONTRACTS (fndecl); ca; ca = CONTRACT_CHAIN (ca))
@@ -3156,28 +3156,25 @@ finish_function_contracts (tree fndecl)
3156
3156
if (pre == error_mark_node || post == error_mark_node)
3157
3157
return ;
3158
3158
3159
- if (pre && ( !DECL_INITIAL (pre) || DECL_INITIAL (pre)== error_mark_node ))
3159
+ if (pre && !DECL_INITIAL (pre))
3160
3160
{
3161
3161
DECL_PENDING_INLINE_P (pre) = false ;
3162
3162
start_preparsed_function (pre, DECL_ATTRIBUTES (pre), flags);
3163
3163
remap_and_emit_conditions (fndecl, pre, PRECONDITION_STMT);
3164
3164
finish_return_stmt (NULL_TREE);
3165
- tree finished_pre = finish_function (false );
3166
- expand_or_defer_fn (finished_pre );
3165
+ pre = finish_function (false );
3166
+ expand_or_defer_fn (pre );
3167
3167
}
3168
3168
3169
- if (post && ( !DECL_INITIAL (post) || DECL_INITIAL (post) == error_mark_node ))
3169
+ if (post && !DECL_INITIAL (post))
3170
3170
{
3171
3171
DECL_PENDING_INLINE_P (post) = false ;
3172
- start_preparsed_function (post,
3173
- DECL_ATTRIBUTES (post),
3174
- flags);
3172
+ start_preparsed_function (post, DECL_ATTRIBUTES (post), flags);
3175
3173
remap_and_emit_conditions (fndecl, post, POSTCONDITION_STMT);
3176
3174
gcc_checking_assert (VOID_TYPE_P (TREE_TYPE (TREE_TYPE (post))));
3177
3175
finish_return_stmt (NULL_TREE);
3178
-
3179
- tree finished_post = finish_function (false );
3180
- expand_or_defer_fn (finished_post);
3176
+ post = finish_function (false );
3177
+ expand_or_defer_fn (post);
3181
3178
}
3182
3179
3183
3180
/* Check if we need to update wrapper function contracts. */
0 commit comments