diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-22 13:49:06 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2011-02-22 13:49:06 +0000 |
commit | f29ce975ba6d4b2f1cb9a54f049921eb688c8979 (patch) | |
tree | 3b82163c92b3affb573e38c25e15e2317cb4d580 /clang/lib/Lex/PPDirectives.cpp | |
parent | 2c9f966600da37ea87a1497a7c0d71f51d953760 (diff) | |
download | bcm5719-llvm-f29ce975ba6d4b2f1cb9a54f049921eb688c8979.tar.gz bcm5719-llvm-f29ce975ba6d4b2f1cb9a54f049921eb688c8979.zip |
Reimplement __pragma support using a TokenLexer
llvm-svn: 126221
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index f92fa038a30..3e871ae7ab4 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -86,6 +86,7 @@ void Preprocessor::DiscardUntilEndOfDirective() { Token Tmp; do { LexUnexpandedToken(Tmp); + assert(Tmp.isNot(tok::eof) && "EOF seen while discarding directive tokens"); } while (Tmp.isNot(tok::eom)); } |