diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-15 18:55:23 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-15 18:55:23 +0000 |
commit | 90db74c361f16de5f22c53358ed48797bc4888fc (patch) | |
tree | a126ee3de983bfc5da51622e11d22809a607ae7d /lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | 37dd3ecbfc555c3ee0a1922f4bd5ab999c1e5461 (diff) |
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
Diffstat (limited to 'lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | lib/Frontend/PrintPreprocessedOutput.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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. |