aboutsummaryrefslogtreecommitdiff
path: root/lib/Lex/Preprocessor.cpp
diff options
context:
space:
mode:
authorZhongxing Xu <xuzhongxing@foxmail.com>2011-09-26 03:37:43 +0000
committerZhongxing Xu <xuzhongxing@foxmail.com>2011-09-26 03:37:43 +0000
commit7e7b503211f1c0ae1537da4657c9ed34f69b3506 (patch)
tree8ecfa89a45a0a61bdc15f0beff4efafdf63895a5 /lib/Lex/Preprocessor.cpp
parent904371225947f5df6d8f1a12f1ff65359fb3e713 (diff)
Properly initialize Preprocessor::CurLexerKind to avoid use of uninitialized variable.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@140514 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Lex/Preprocessor.cpp')
-rw-r--r--lib/Lex/Preprocessor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Lex/Preprocessor.cpp b/lib/Lex/Preprocessor.cpp
index 2937b6066e..eeb4be1250 100644
--- a/lib/Lex/Preprocessor.cpp
+++ b/lib/Lex/Preprocessor.cpp
@@ -61,8 +61,8 @@ Preprocessor::Preprocessor(DiagnosticsEngine &diags, LangOptions &opts,
Identifiers(opts, IILookup), CodeComplete(0),
CodeCompletionFile(0), CodeCompletionOffset(0), CodeCompletionReached(0),
SkipMainFilePreamble(0, true), CurPPLexer(0),
- CurDirLookup(0), Callbacks(0), MacroArgCache(0), Record(0), MIChainHead(0),
- MICache(0)
+ CurDirLookup(0), CurLexerKind(CLK_Lexer), Callbacks(0), MacroArgCache(0),
+ Record(0), MIChainHead(0), MICache(0)
{
OwnsHeaderSearch = OwnsHeaders;