From 4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 15 Jun 2010 18:55:23 +0000 Subject: fix an uninitialized variable, patch by Michael Spencer! llvm-svn: 106025 --- clang/lib/Frontend/PrintPreprocessedOutput.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp') diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp index 80e697d..b5bbd52 100644 --- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/clang/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. -- cgit v1.1