diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-11-12 00:03:40 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-11-12 00:03:40 +0000 |
commit | c998409cceb9a781cce489f2c82675724c69f62f (patch) | |
tree | 790dbb1d30159a4d0503daa9bf257091e8f89100 /clang/lib/Lex/PPCaching.cpp | |
parent | 732ef8aefd67ac12f73c35c05280d1f82d342eb7 (diff) | |
download | bcm5719-llvm-c998409cceb9a781cce489f2c82675724c69f62f.tar.gz bcm5719-llvm-c998409cceb9a781cce489f2c82675724c69f62f.zip |
Remove an overly-eager assertion when replacing tokens with an
annotation token, because some of the tokens we're annotating might
not be in the set of cached tokens (we could have consumed them
unconditionally).
Also, move the tentative parsing from ParseTemplateTemplateArgument
into the one caller that needs it, improving recovery.
llvm-svn: 86904
Diffstat (limited to 'clang/lib/Lex/PPCaching.cpp')
-rw-r--r-- | clang/lib/Lex/PPCaching.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/clang/lib/Lex/PPCaching.cpp b/clang/lib/Lex/PPCaching.cpp index c3f0eeab584..7c3780ffc0a 100644 --- a/clang/lib/Lex/PPCaching.cpp +++ b/clang/lib/Lex/PPCaching.cpp @@ -109,6 +109,4 @@ void Preprocessor::AnnotatePreviousCachedTokens(const Token &Tok) { return; } } - - assert(0&&"Didn't find the first token represented by the annotation token!"); } |