зеркало из https://github.com/microsoft/clang-1.git
Unbreak the build
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@97519 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
9ea9bdbc14
Коммит
d6d4fcf7fd
|
@ -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);
|
||||
|
|
|
@ -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.
|
||||
|
|
Загрузка…
Ссылка в новой задаче