fix the various buildbot failures by ensuring that tokens are really completely initialized.

llvm-svn: 106043
This commit is contained in:
Chris Lattner 2010-06-15 21:06:38 +00:00
parent ae591be4e9
commit bba37f4dea
2 changed files with 4 additions and 4 deletions

View File

@ -148,6 +148,7 @@ public:
Kind = tok::unknown;
Flags = 0;
PtrData = 0;
UintData = 0;
Loc = SourceLocation();
}

View File

@ -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.