diff options
author | Zhongxing Xu <xuzhongxing@foxmail.com> | 2011-09-26 03:37:43 +0000 |
---|---|---|
committer | Zhongxing Xu <xuzhongxing@foxmail.com> | 2011-09-26 03:37:43 +0000 |
commit | 2d17ff466ee9ac1f7b81cea113e0d5afc7f8bf8b (patch) | |
tree | b010d69ebd3d521358ae9e1a35b88f1cbf8c0108 /clang/lib/Lex/Preprocessor.cpp | |
parent | 6f4f307d1f78e467e28871d14e1db62466552a9c (diff) | |
download | bcm5719-llvm-2d17ff466ee9ac1f7b81cea113e0d5afc7f8bf8b.tar.gz bcm5719-llvm-2d17ff466ee9ac1f7b81cea113e0d5afc7f8bf8b.zip |
Properly initialize Preprocessor::CurLexerKind to avoid use of uninitialized variable.
llvm-svn: 140514
Diffstat (limited to 'clang/lib/Lex/Preprocessor.cpp')
-rw-r--r-- | clang/lib/Lex/Preprocessor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Lex/Preprocessor.cpp b/clang/lib/Lex/Preprocessor.cpp index 2937b6066ed..eeb4be1250c 100644 --- a/clang/lib/Lex/Preprocessor.cpp +++ b/clang/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; |