Skip to content

Commit

Permalink
* cfgloop.h (number_of_loops): Fix typo in check for null.
Browse files Browse the repository at this point in the history
From-SVN: r202975
  • Loading branch information
Paulo Matos authored and Paulo Matos committed Sep 27, 2013
1 parent d02dae4 commit 0d0e2af
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions gcc/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
2013-09-27 Paulo Matos <[email protected]>

* cfgloop.h (number_of_loops): Fix typo in check for null.

2013-09-27 Jakub Jelinek <[email protected]>

PR middle-end/58551
Expand Down
2 changes: 1 addition & 1 deletion gcc/cfgloop.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0d0e2af

Please sign in to comment.