From d6d4fcf7fd2cdb8c75e6feb5ab1a7132784e96e1 Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Mon, 1 Mar 2010 23:31:19 +0000 Subject: [PATCH] Unbreak the build git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97519 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/clang/Parse/Scope.h | 4 ++++ lib/Parse/Parser.cpp | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/include/clang/Parse/Scope.h b/include/clang/Parse/Scope.h index ef1966cfde..c9825f60c2 100644 --- a/include/clang/Parse/Scope.h +++ b/include/clang/Parse/Scope.h @@ -215,6 +215,10 @@ public: /// entered this scope. unsigned getNumErrorsAtStart() const { return NumErrorsAtStart; } + void setNumErrorsAtStart(unsigned NumErrors) { + NumErrorsAtStart = NumErrors; + } + /// isClassScope - Return true if this scope is a class/struct/union scope. bool isClassScope() const { return (getFlags() & Scope::ClassScope); diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 223d8865d6..e7a771edda 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -274,7 +274,7 @@ void Parser::EnterScope(unsigned ScopeFlags) { } else { CurScope = new Scope(CurScope, ScopeFlags); } - CurScope->NumErrorsAtStart = Diags.getNumErrors(); + CurScope->setNumErrorsAtStart(Diags.getNumErrors()); } /// ExitScope - Pop a scope off the scope stack. -- 2.40.0