aboutsummaryrefslogtreecommitdiff
path: root/lib/Sema
diff options
context:
space:
mode:
authorRichard Smith <richard-llvm@metafoo.co.uk>2013-05-06 21:35:35 +0000
committerRichard Smith <richard-llvm@metafoo.co.uk>2013-05-06 21:35:35 +0000
commit009735db957ac4bcca8f5ad1a5c01354b1b57fbd (patch)
tree3d3180d09a0fecd7df4340ed7a69dccd91f53d8c /lib/Sema
parent7adf79a620cb7fbde0608e21727425930676b7db (diff)
Add missing initialization for Sema::CurScope. This is important for AST consumers which don't create a Parser. Pointed out by Tom Honermann.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@181251 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Sema')
-rw-r--r--lib/Sema/Sema.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Sema/Sema.cpp b/lib/Sema/Sema.cpp
index 956204734d..e718be2f8b 100644
--- a/lib/Sema/Sema.cpp
+++ b/lib/Sema/Sema.cpp
@@ -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;