r181251 - Add missing initialization for Sema::CurScope. This is important for AST consumers which don't create a Parser. Pointed out by Tom Honermann.
Richard Smith
richard-llvm at metafoo.co.uk
Mon May 6 14:35:36 PDT 2013
Author: rsmith
Date: Mon May 6 16:35:35 2013
New Revision: 181251
URL: http://llvm.org/viewvc/llvm-project?rev=181251&view=rev
Log:
Add missing initialization for Sema::CurScope. This is important for AST consumers which don't create a Parser. Pointed out by Tom Honermann.
Modified:
cfe/trunk/lib/Sema/Sema.cpp
Modified: cfe/trunk/lib/Sema/Sema.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Sema/Sema.cpp?rev=181251&r1=181250&r2=181251&view=diff
==============================================================================
--- cfe/trunk/lib/Sema/Sema.cpp (original)
+++ cfe/trunk/lib/Sema/Sema.cpp Mon May 6 16:35:35 2013
@@ -90,7 +90,7 @@ Sema::Sema(Preprocessor &pp, ASTContext
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;
More information about the cfe-commits
mailing list