aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-vis.c
diff options
context:
space:
mode:
authorSteven Bosscher <steven@gcc.gnu.org>2012-11-12 22:13:20 +0000
committerSteven Bosscher <steven@gcc.gnu.org>2012-11-12 22:13:20 +0000
commitaea9bbebd1847adaae63e970f5328a0382de9367 (patch)
treeb6aacd1438d363b2a8820fe5012720c9183315b0 /gcc/sched-vis.c
parent33521509a82eeed8e657642db2c2846cc9685bab (diff)
downloadgcc-aea9bbebd1847adaae63e970f5328a0382de9367.zip
gcc-aea9bbebd1847adaae63e970f5328a0382de9367.tar.gz
gcc-aea9bbebd1847adaae63e970f5328a0382de9367.tar.bz2
sched-vis.c (print_pattern): Handle NULL patterns.
* sched-vis.c (print_pattern): Handle NULL patterns. From-SVN: r193455
Diffstat (limited to 'gcc/sched-vis.c')
-rw-r--r--gcc/sched-vis.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/sched-vis.c b/gcc/sched-vis.c
index 280b33a..d4f5e95 100644
--- a/gcc/sched-vis.c
+++ b/gcc/sched-vis.c
@@ -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: