sched-vis.c (print_pattern): Handle NULL patterns.
* sched-vis.c (print_pattern): Handle NULL patterns. From-SVN: r193455
This commit is contained in:
parent
33521509a8
commit
aea9bbebd1
2 changed files with 10 additions and 0 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue