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 | 4e18a2bc9738ca50b6bc0e54279fa8013dfb5da0 (patch) | |
tree | 9f73b7f35428a4033a79ec546c65e73b57437ac7 /clang/lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | c964585ff8ba6aab8149a6ada04cf795ef1721b9 (diff) | |
download | llvm-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.cpp | 2 |
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. |