summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-01-18 22:33:01 +0000
committerChris Lattner <sabre@nondot.org>2010-01-18 22:33:01 +0000
commitf406b2402d56817bc4ac5734aa81e544bb86fc05 (patch)
treeafe8a498c8326265bc2b3a96a07507336dbe5853
parent6b4f73ea946322e2283071bdd02cf7b4eacfeb90 (diff)
downloadbcm5719-llvm-f406b2402d56817bc4ac5734aa81e544bb86fc05.tar.gz
bcm5719-llvm-f406b2402d56817bc4ac5734aa81e544bb86fc05.zip
simplify the code for skipping in a #if 0 block. The CurLexer
pointer is always non-null because the PTH case exits earlier in the method. llvm-svn: 93794
-rw-r--r--clang/lib/Lex/PPDirectives.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp
index aa807f800d3..dc5b204216e 100644
--- a/clang/lib/Lex/PPDirectives.cpp
+++ b/clang/lib/Lex/PPDirectives.cpp
@@ -160,10 +160,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc,
CurPPLexer->LexingRawMode = true;
Token Tok;
while (1) {
- if (CurLexer)
- CurLexer->Lex(Tok);
- else
- CurPTHLexer->Lex(Tok);
+ CurLexer->Lex(Tok);
// If this is the end of the buffer, we have an error.
if (Tok.is(tok::eof)) {
OpenPOWER on IntegriCloud