From: Paulo Matos Date: Fri, 27 Sep 2013 14:37:48 +0000 (+0000) Subject: * cfgloop.h (number_of_loops): Fix typo in check for null. X-Git-Tag: releases/gcc-4.9.0~3846 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0d0e2af66ef462b1df22e17c0a798526c2837192;p=thirdparty%2Fgcc.git * cfgloop.h (number_of_loops): Fix typo in check for null. From-SVN: r202975 --- 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);