Fix assertion failure in PTH when tokens followed a closing #endif.

- Ted, please check.

 - Missing test case because PTH won't reliably cache the tokens in a
   test case. *cough*

llvm-svn: 68966
This commit is contained in:
Daniel Dunbar 2009-04-13 17:57:49 +00:00
parent a8854654ac
commit 2cba6be499
1 changed files with 2 additions and 3 deletions

View File

@ -351,10 +351,9 @@ void Preprocessor::PTHSkipExcludedConditionalBlock() {
if (!CondInfo.FoundNonSkip) {
CondInfo.FoundNonSkip = true;
// Consume the eom token.
// Scan until the eom token.
CurPTHLexer->ParsingPreprocessorDirective = true;
LexUnexpandedToken(Tok);
assert(Tok.is(tok::eom));
DiscardUntilEndOfDirective();
CurPTHLexer->ParsingPreprocessorDirective = false;
break;