diff options
author | Jan Hubicka <hubicka@ucw.cz> | 2017-06-09 20:32:47 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2017-06-09 18:32:47 +0000 |
commit | e813ee348588e487e51ac05b676fd732dc0f6da5 (patch) | |
tree | d1e976d1a1a941cfff91eb3da9ebf87d260b84b2 /gcc/predict.c | |
parent | f66e6423731a517873fdf5dfc3e67bae7f8acb48 (diff) | |
download | gcc-e813ee348588e487e51ac05b676fd732dc0f6da5.zip gcc-e813ee348588e487e51ac05b676fd732dc0f6da5.tar.gz gcc-e813ee348588e487e51ac05b676fd732dc0f6da5.tar.bz2 |
* predict.c (unlikely_executed_stmt_p): Cleanup.
From-SVN: r249068
Diffstat (limited to 'gcc/predict.c')
-rw-r--r-- | gcc/predict.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/predict.c b/gcc/predict.c index ca40068..764a915 100644 --- a/gcc/predict.c +++ b/gcc/predict.c @@ -797,10 +797,11 @@ unlikely_executed_stmt_p (gimple *stmt) cgraph_node *n = cgraph_node::get (decl); if (!n) return false; - enum availability avail; + + availability avail; n = n->ultimate_alias_target (&avail); if (avail < AVAIL_AVAILABLE) - return NULL; + return false; if (!n->analyzed || n->decl == current_function_decl) return false; |