summaryrefslogtreecommitdiffstats
path: root/clang/lib/Lex/PPCaching.cpp
diff options
context:
space:
mode:
authorDouglas Gregor <dgregor@apple.com>2009-11-12 00:03:40 +0000
committerDouglas Gregor <dgregor@apple.com>2009-11-12 00:03:40 +0000
commitc998409cceb9a781cce489f2c82675724c69f62f (patch)
tree790dbb1d30159a4d0503daa9bf257091e8f89100 /clang/lib/Lex/PPCaching.cpp
parent732ef8aefd67ac12f73c35c05280d1f82d342eb7 (diff)
downloadbcm5719-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.cpp2
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!");
}
OpenPOWER on IntegriCloud