[cfe-commits] r97519 - in /cfe/trunk: include/clang/Parse/Scope.h lib/Parse/Parser.cpp

Douglas Gregor dgregor at apple.com
Mon Mar 1 15:31:19 PST 2010


Author: dgregor
Date: Mon Mar  1 17:31:19 2010
New Revision: 97519

URL: http://llvm.org/viewvc/llvm-project?rev=97519&view=rev
Log:
Unbreak the build

Modified:
    cfe/trunk/include/clang/Parse/Scope.h
    cfe/trunk/lib/Parse/Parser.cpp

Modified: cfe/trunk/include/clang/Parse/Scope.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/Parse/Scope.h?rev=97519&r1=97518&r2=97519&view=diff
==============================================================================
--- cfe/trunk/include/clang/Parse/Scope.h (original)
+++ cfe/trunk/include/clang/Parse/Scope.h Mon Mar  1 17:31:19 2010
@@ -215,6 +215,10 @@
   /// 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);

Modified: cfe/trunk/lib/Parse/Parser.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Parse/Parser.cpp?rev=97519&r1=97518&r2=97519&view=diff
==============================================================================
--- cfe/trunk/lib/Parse/Parser.cpp (original)
+++ cfe/trunk/lib/Parse/Parser.cpp Mon Mar  1 17:31:19 2010
@@ -274,7 +274,7 @@
   } else {
     CurScope = new Scope(CurScope, ScopeFlags);
   }
-  CurScope->NumErrorsAtStart = Diags.getNumErrors();
+  CurScope->setNumErrorsAtStart(Diags.getNumErrors());
 }
 
 /// ExitScope - Pop a scope off the scope stack.





More information about the cfe-commits mailing list