aboutsummaryrefslogtreecommitdiff
path: root/gcc/gimple-fold.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2016-08-17 16:24:53 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2016-08-17 16:24:53 +0200
commit865f704603c2db06e82aaf1036a9cd6dca0cf3d6 (patch)
tree30ec27784a09fa29f2dba92c6929dc8378f6aa9c /gcc/gimple-fold.c
parente07f4b008daa0cd06b079202919508fa74f030ff (diff)
downloadgcc-865f704603c2db06e82aaf1036a9cd6dca0cf3d6.zip
gcc-865f704603c2db06e82aaf1036a9cd6dca0cf3d6.tar.gz
gcc-865f704603c2db06e82aaf1036a9cd6dca0cf3d6.tar.bz2
gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p instead of testing ECF_NORETURN bit in gimple_call_flags.
* gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p instead of testing ECF_NORETURN bit in gimple_call_flags. * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise. * predict.c (tree_bb_level_predictions): Likewise. * gimple-low.c (gimple_stmt_may_fallthru): Likewise. From-SVN: r239539
Diffstat (limited to 'gcc/gimple-fold.c')
-rw-r--r--gcc/gimple-fold.c2
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)))