diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-18 01:34:22 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-18 01:34:22 +0000 |
commit | bc63de144fbaea908ac011a3b458fd7ec4a3f645 (patch) | |
tree | 1e3f0690f431d7d9515cd20bbceca3eda5cccea8 /clang/lib/Lex/PPDirectives.cpp | |
parent | b547394ba5ed6dde4ac3c4f990e5e442077b6ae0 (diff) | |
download | bcm5719-llvm-bc63de144fbaea908ac011a3b458fd7ec4a3f645.tar.gz bcm5719-llvm-bc63de144fbaea908ac011a3b458fd7ec4a3f645.zip |
Fix PR3938 by taking into account C99 6.10p4.
llvm-svn: 69413
Diffstat (limited to 'clang/lib/Lex/PPDirectives.cpp')
-rw-r--r-- | clang/lib/Lex/PPDirectives.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPDirectives.cpp b/clang/lib/Lex/PPDirectives.cpp index 502da738425..be4da35f938 100644 --- a/clang/lib/Lex/PPDirectives.cpp +++ b/clang/lib/Lex/PPDirectives.cpp @@ -268,7 +268,7 @@ void Preprocessor::SkipExcludedConditionalBlock(SourceLocation IfTokenLoc, // #else directive in a skipping conditional. If not in some other // skipping conditional, and if #else hasn't already been seen, enter it // as a non-skipping conditional. - CheckEndOfDirective("else"); + DiscardUntilEndOfDirective(); // C99 6.10p4. PPConditionalInfo &CondInfo = CurPPLexer->peekConditionalLevel(); // If this is a #else with a #else before it, report the error. |