diff options
Diffstat (limited to 'gcc/lto-streamer.c')
-rw-r--r-- | gcc/lto-streamer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/lto-streamer.c b/gcc/lto-streamer.c index 20ce0751d3d..561ecbc1a7e 100644 --- a/gcc/lto-streamer.c +++ b/gcc/lto-streamer.c @@ -29,7 +29,7 @@ along with GCC; see the file COPYING3. If not see #include "tree.h" #include "gimple.h" #include "tree-flow.h" -#include "diagnostic.h" +#include "diagnostic-core.h" #include "bitmap.h" #include "vec.h" #include "lto-streamer.h" @@ -848,7 +848,7 @@ gate_lto_out (void) { return ((flag_generate_lto || in_lto_p) /* Don't bother doing anything if the program has errors. */ - && !(errorcount || sorrycount)); + && !seen_error ()); } |