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:
parent
a8854654ac
commit
2cba6be499
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue