]> granicus.if.org Git - clang/commitdiff
fix an uninitialized variable, patch by Michael Spencer!
authorChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2010 18:55:23 +0000 (18:55 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 15 Jun 2010 18:55:23 +0000 (18:55 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106025 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Frontend/PrintPreprocessedOutput.cpp

index 80e697daa0d74e61de3be375387ed519bcfc852a..b5bbd52dbd7383c407b084c8fd4d96a83eb2da0b 100644 (file)
@@ -394,6 +394,8 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
   char Buffer[256];
   Token PrevPrevTok;
   Token PrevTok;
+  PrevPrevTok.setKind(tok::unknown);
+  PrevTok.setKind(tok::unknown);
   while (1) {
 
     // If this token is at the start of a line, emit newlines if needed.