[cfe-commits] r140514 - /cfe/trunk/lib/Lex/Preprocessor.cpp

Zhongxing Xu xuzhongxing at foxmail.com
Sun Sep 25 20:37:43 PDT 2011


Author: zhongxingxu
Date: Sun Sep 25 22:37:43 2011
New Revision: 140514

URL: http://llvm.org/viewvc/llvm-project?rev=140514&view=rev
Log:
Properly initialize Preprocessor::CurLexerKind to avoid use of uninitialized variable.

Modified:
    cfe/trunk/lib/Lex/Preprocessor.cpp

Modified: cfe/trunk/lib/Lex/Preprocessor.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/Lex/Preprocessor.cpp?rev=140514&r1=140513&r2=140514&view=diff
==============================================================================
--- cfe/trunk/lib/Lex/Preprocessor.cpp (original)
+++ cfe/trunk/lib/Lex/Preprocessor.cpp Sun Sep 25 22:37:43 2011
@@ -61,8 +61,8 @@
     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;
   





More information about the cfe-commits mailing list