aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/PrintPreprocessedOutput.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-06-15 21:06:38 +0000
committerChris Lattner <sabre@nondot.org>2010-06-15 21:06:38 +0000
commitbba37f4dea351fe4a921a728e361892423696f54 (patch)
treece325867448d1cd9fd4bd968ee1ecc17f92a6305 /clang/lib/Frontend/PrintPreprocessedOutput.cpp
parentae591be4e99f214ac70e338e8171ca7f8263c1e9 (diff)
downloadllvm-bba37f4dea351fe4a921a728e361892423696f54.zip
llvm-bba37f4dea351fe4a921a728e361892423696f54.tar.gz
llvm-bba37f4dea351fe4a921a728e361892423696f54.tar.bz2
fix the various buildbot failures by ensuring that tokens are really completely initialized.
llvm-svn: 106043
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r--clang/lib/Frontend/PrintPreprocessedOutput.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
index b5bbd52..74552dd 100644
--- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp
+++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp
@@ -392,10 +392,9 @@ static void PrintPreprocessedTokens(Preprocessor &PP, Token &Tok,
PrintPPOutputPPCallbacks *Callbacks,
llvm::raw_ostream &OS) {
char Buffer[256];
- Token PrevPrevTok;
- Token PrevTok;
- PrevPrevTok.setKind(tok::unknown);
- PrevTok.setKind(tok::unknown);
+ Token PrevPrevTok, PrevTok;
+ PrevPrevTok.startToken();
+ PrevTok.startToken();
while (1) {
// If this token is at the start of a line, emit newlines if needed.