diff options
| author | Douglas Gregor <dgregor@apple.com> | 2010-03-01 23:31:19 +0000 |
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2010-03-01 23:31:19 +0000 |
| commit | ea99b5d7365e8d1a151657b6e7922381d2c2833b (patch) | |
| tree | 6ecefaf5eaa2072d25086d842932410c1680173b /clang | |
| parent | 9a28e84b325851310ca2cdfa59d8d8f2875d5a2e (diff) | |
| download | bcm5719-llvm-ea99b5d7365e8d1a151657b6e7922381d2c2833b.tar.gz bcm5719-llvm-ea99b5d7365e8d1a151657b6e7922381d2c2833b.zip | |
Unbreak the build
llvm-svn: 97519
Diffstat (limited to 'clang')
| -rw-r--r-- | clang/include/clang/Parse/Scope.h | 4 | ||||
| -rw-r--r-- | clang/lib/Parse/Parser.cpp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/clang/include/clang/Parse/Scope.h b/clang/include/clang/Parse/Scope.h index ef1966cfde6..c9825f60c25 100644 --- a/clang/include/clang/Parse/Scope.h +++ b/clang/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/clang/lib/Parse/Parser.cpp b/clang/lib/Parse/Parser.cpp index 223d8865d61..e7a771edda4 100644 --- a/clang/lib/Parse/Parser.cpp +++ b/clang/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. |

