From 0cf55e99c6810cb624486f2a6ff51886f6e23d2e Mon Sep 17 00:00:00 2001 From: Douglas Gregor Date: Thu, 8 Mar 2012 01:00:17 +0000 Subject: Streamline BalancedDelimiterTracker, by eliminating the duplicate paren/brace/bracket tracking (the Consume* functions already did it), removing the use of ConsumeAnyToken(), and moving the hot paths inline with the error paths out-of-line. llvm-svn: 152274 --- clang/lib/Parse/ParseCXXInlineMethods.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp') diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp index 8cec31ca0d7..6fe33f4860d 100644 --- a/clang/lib/Parse/ParseCXXInlineMethods.cpp +++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp @@ -193,7 +193,7 @@ void Parser::ParseCXXNonStaticMemberInitializer(Decl *VarD) { tok::TokenKind kind = Tok.getKind(); if (kind == tok::equal) { Toks.push_back(Tok); - ConsumeAnyToken(); + ConsumeToken(); } if (kind == tok::l_brace) { -- cgit v1.2.3