]> granicus.if.org Git - clang/commitdiff
Unbreak the build
authorDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 23:31:19 +0000 (23:31 +0000)
committerDouglas Gregor <dgregor@apple.com>
Mon, 1 Mar 2010 23:31:19 +0000 (23:31 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97519 91177308-0d34-0410-b5e6-96231b3b80d8

include/clang/Parse/Scope.h
lib/Parse/Parser.cpp

index ef1966cfde6d831be484be01b135e6df851ab9a1..c9825f60c25c21d1da1a233af207431428e7f747 100644 (file)
@@ -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);
index 223d8865d6172a5abfbd7f1845620d3644d08623..e7a771edda4473dfec0877e9eadb3b7a224039a6 100644 (file)
@@ -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.