sched-vis.c (print_pattern): Handle NULL patterns.

* sched-vis.c (print_pattern): Handle NULL patterns.

From-SVN: r193455
This commit is contained in:
Steven Bosscher 2012-11-12 22:13:20 +00:00
parent 33521509a8
commit aea9bbebd1
2 changed files with 10 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
* sched-vis.c (print_pattern): Handle NULL patterns.
2012-11-12 Steven Bosscher <steven@gcc.gnu.org>
Jakub Jelinek <jakub@redhat.com>

View file

@ -568,6 +568,12 @@ print_pattern (char *buf, const_rtx x, int verbose)
{
char t1[BUF_LEN], t2[BUF_LEN], t3[BUF_LEN];
if (! x)
{
sprintf (buf, "(nil)");
return;
}
switch (GET_CODE (x))
{
case SET: