Properly initialize Preprocessor::CurLexerKind to avoid use of uninitialized variable.

llvm-svn: 140514
This commit is contained in:
Zhongxing Xu 2011-09-26 03:37:43 +00:00
parent 6f4f307d1f
commit 2d17ff466e
1 changed files with 2 additions and 2 deletions

View File

@ -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;