projects
/
gcc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gimple-pretty-print.c (dump_bb_header): Add check for cfun.
[gcc.git]
/
gcc
/
gimple-pretty-print.c
diff --git
a/gcc/gimple-pretty-print.c
b/gcc/gimple-pretty-print.c
index 057f35b98150409579fcbeac38318abfc6549708..cda0d1699467aae59f81c0128825318a9d3eba5a 100644
(file)
--- a/
gcc/gimple-pretty-print.c
+++ b/
gcc/gimple-pretty-print.c
@@
-1898,7
+1898,8
@@
dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags)
}
}
pp_write_text_to_stream (buffer);
- check_bb_profile (bb, buffer->buffer->stream);
+ if (cfun)
+ check_bb_profile (bb, buffer->buffer->stream);
}