summaryrefslogtreecommitdiffstats
path: root/clang/lib/ARCMigrate/Internals.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/lib/ARCMigrate/Internals.h')
-rw-r--r--clang/lib/ARCMigrate/Internals.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/clang/lib/ARCMigrate/Internals.h b/clang/lib/ARCMigrate/Internals.h
index d87d1eca1de..a65b329c5b0 100644
--- a/clang/lib/ARCMigrate/Internals.h
+++ b/clang/lib/ARCMigrate/Internals.h
@@ -48,7 +48,6 @@ void writeARCDiagsToPlist(const std::string &outPath,
class TransformActions {
DiagnosticsEngine &Diags;
CapturedDiagList &CapturedDiags;
- bool ReportedErrors;
void *Impl; // TransformActionsImpl.
public:
@@ -104,7 +103,9 @@ public:
void reportNote(StringRef note, SourceLocation loc,
SourceRange range = SourceRange());
- bool hasReportedErrors() const { return ReportedErrors; }
+ bool hasReportedErrors() const {
+ return Diags.hasUnrecoverableErrorOccurred();
+ }
class RewriteReceiver {
public:
OpenPOWER on IntegriCloud