forked from OSchip/llvm-project
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:
parent
59df52c585
commit
252a0acce2
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue