aboutsummaryrefslogtreecommitdiff
path: root/gcc/sched-vis.c
diff options
context:
space:
mode:
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: