From: pmatos Date: Fri, 27 Sep 2013 14:37:48 +0000 (+0000) Subject: * cfgloop.h (number_of_loops): Fix typo in check for null. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=de15b4bb54f79956e26d413af900d4f92dc686e4;p=thirdparty%2Fgcc.git * cfgloop.h (number_of_loops): Fix typo in check for null. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@202975 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 620229e3b3bd..888bb49c6f0d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2013-09-27 Paulo Matos + + * cfgloop.h (number_of_loops): Fix typo in check for null. + 2013-09-27 Jakub Jelinek PR middle-end/58551 diff --git a/gcc/cfgloop.h b/gcc/cfgloop.h index cd2f527bb471..33d96fe5263b 100644 --- a/gcc/cfgloop.h +++ b/gcc/cfgloop.h @@ -515,7 +515,7 @@ static inline unsigned number_of_loops (struct function *fn) { struct loops *loops = loops_for_fn (fn); - if (!fn) + if (!loops) return 0; return vec_safe_length (loops->larray);