diff options
Diffstat (limited to 'gcc/ipa-reference.c')
-rw-r--r-- | gcc/ipa-reference.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-reference.c b/gcc/ipa-reference.c index a66e6279e16..bee05651de0 100644 --- a/gcc/ipa-reference.c +++ b/gcc/ipa-reference.c @@ -1096,7 +1096,7 @@ gate_reference (void) { return (flag_ipa_reference /* Don't bother doing anything if the program has errors. */ - && !(errorcount || sorrycount)); + && !seen_error ()); } struct ipa_opt_pass_d pass_ipa_reference = |