Add missing initialization for Sema::CurScope. This is important for AST consumers which don't create a Parser. Pointed out by Tom Honermann.

llvm-svn: 181251
This commit is contained in:
Richard Smith 2013-05-06 21:35:35 +00:00
parent 59df52c585
commit 252a0acce2
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Sema::Sema(Preprocessor &pp, ASTContext &ctxt, ASTConsumer &consumer,
AccessCheckingSFINAE(false), InNonInstantiationSFINAEContext(false),
NonInstantiationEntries(0), ArgumentPackSubstitutionIndex(-1),
CurrentInstantiationScope(0), TyposCorrected(0),
AnalysisWarnings(*this), Ident_super(0)
AnalysisWarnings(*this), CurScope(0), Ident_super(0)
{
TUScope = 0;