diff options
author | Douglas Gregor <dgregor@apple.com> | 2012-03-08 01:00:17 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2012-03-08 01:00:17 +0000 |
commit | d78ef5b941ce2937228b010e8443f92025f9d683 (patch) | |
tree | d065307f5a54a236fa9774de8b744f597656cb29 /lib/Parse/ParseCXXInlineMethods.cpp | |
parent | 9ae3a3647388c42b91505b175c1c8d0055b637dd (diff) |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152274 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r-- | lib/Parse/ParseCXXInlineMethods.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/ParseCXXInlineMethods.cpp b/lib/Parse/ParseCXXInlineMethods.cpp index 8cec31ca0d..6fe33f4860 100644 --- a/lib/Parse/ParseCXXInlineMethods.cpp +++ b/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) { |