summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic/Diagnostic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/Basic/Diagnostic.cpp')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index 388875cf631..738c27ccae7 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/lib/Basic/Diagnostic.cpp
@@ -223,7 +223,7 @@ Diagnostic::Diagnostic(DiagnosticClient *client) : Client(client) {
ErrorOccurred = false;
FatalErrorOccurred = false;
- MaxErrorsEmitted = 0;
+ ErrorLimit = 0;
NumWarnings = 0;
NumErrors = 0;
@@ -555,7 +555,7 @@ bool Diagnostic::ProcessDiag() {
// If we've emitted a lot of errors, emit a fatal error after it to stop a
// flood of bogus errors.
- if (MaxErrorsEmitted && NumErrors >= MaxErrorsEmitted &&
+ if (ErrorLimit && NumErrors >= ErrorLimit &&
DiagLevel == Diagnostic::Error)
SetDelayedDiagnostic(diag::fatal_too_many_errors);
}
OpenPOWER on IntegriCloud