diff options
author | Chris Lattner <sabre@nondot.org> | 2010-07-12 01:48:28 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2010-07-12 01:48:28 +0000 |
commit | 9fc1873a3da0af8ef91e4f1927f3540f9af2038f (patch) | |
tree | a19c9314aba6ea93f76b76321ab9bff6196fcb26 /lib/Parse/Parser.cpp | |
parent | 184aa4e6ded190bfb3bbe207040467f8d7e28a04 (diff) |
revert a hunk of code that Argiris added in r106213, which is the
root cause of PR7481 and probably more, and has no apparent
testcases. I don't understand the logic here so I can't repair it.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@108119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index def2ca4088..02fac16905 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -127,16 +127,7 @@ SourceLocation Parser::MatchRHSPunctuation(tok::TokenKind RHSTok, } Diag(Tok, DID); Diag(LHSLoc, diag::note_matching) << LHSName; - if (!SkipUntil(RHSTok)) { - // We stopped before finding a RHS token, e.g. we encountered a ';'. - // Balance Paren/Brace/Bracket counting. - switch (RHSTok) { - default: break; - case tok::r_paren : assert(ParenCount > 0); --ParenCount; break; - case tok::r_brace : assert(BraceCount > 0); --BraceCount; break; - case tok::r_square: assert(BracketCount > 0); --BracketCount; break; - } - } + SkipUntil(RHSTok); return R; } |