summaryrefslogtreecommitdiffstats
path: root/clang/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
commit2d17ff466ee9ac1f7b81cea113e0d5afc7f8bf8b (patch)
treeb010d69ebd3d521358ae9e1a35b88f1cbf8c0108 /clang/lib/Lex/Preprocessor.cpp
parent6f4f307d1f78e467e28871d14e1db62466552a9c (diff)
downloadbcm5719-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.cpp4
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;
OpenPOWER on IntegriCloud