aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-15 18:55:23 +0000
committerChris Lattner <sabre@nondot.org>2010-06-15 18:55:23 +0000
commit4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0 (patch)
tree9f73b7f35428a4033a79ec546c65e73b57437ac7 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentc964585ff8ba6aab8149a6ada04cf795ef1721b9 (diff)
downloadllvm-4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0.zip
llvm-4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0.tar.gz
llvm-4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0.tar.bz2
fix an uninitialized variable, patch by Michael Spencer!
llvm-svn: 106025
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp2
1 files changed, 2 insertions, 0 deletions
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.