diff options
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r-- | gcc/gimple-fold.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/gimple-fold.c b/gcc/gimple-fold.c index 73c2314..fbbe520 100644 --- a/gcc/gimple-fold.c +++ b/gcc/gimple-fold.c @@ -3184,7 +3184,7 @@ gimple_fold_call (gimple_stmt_iterator *gsi, bool inplace) /* If changing the call to __cxa_pure_virtual or similar noreturn function, adjust gimple_call_fntype too. */ - if ((gimple_call_flags (stmt) & ECF_NORETURN) + if (gimple_call_noreturn_p (stmt) && VOID_TYPE_P (TREE_TYPE (TREE_TYPE (fndecl))) && TYPE_ARG_TYPES (TREE_TYPE (fndecl)) && (TREE_VALUE (TYPE_ARG_TYPES (TREE_TYPE (fndecl))) |