From: Chris Lattner Date: Tue, 15 Jun 2010 18:55:23 +0000 (+0000) Subject: fix an uninitialized variable, patch by Michael Spencer! X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=90db74c361f16de5f22c53358ed48797bc4888fc;p=clang fix an uninitialized variable, patch by Michael Spencer! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106025 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp index 80e697daa0..b5bbd52dbd 100644 --- a/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/lib/Frontend/PrintPreprocessedOutput.cpp @@ -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.