diff options
author | Chris Lattner <sabre@nondot.org> | 2010-06-15 21:06:38 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-06-15 21:06:38 +0000 |
commit | c54539cd173e20d8b179b9488fabfc5eb4cf5ee6 (patch) | |
tree | 87b5d9fa806950af3c046472ea8e13321025af26 /lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | 410a1da2c87486f529856857aa3388cf67c7bdb9 (diff) |
fix the various buildbot failures by ensuring that tokens are really completely initialized.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@106043 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | lib/Frontend/PrintPreprocessedOutput.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp index b5bbd52dbd..74552dda25 100644 --- a/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/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. |