diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-16 01:56:53 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2014-05-16 01:56:53 +0000 |
commit | ee390436b92ce1df7873c3dcc744b809841cc4c5 (patch) | |
tree | 2036c7458b7e3df6d9d1acd7a6e351080de0c3fa /clang/lib/Parse/ParseCXXInlineMethods.cpp | |
parent | 218f71e14883c75fefb88e4d1af902ae538d7de0 (diff) | |
download | bcm5719-llvm-ee390436b92ce1df7873c3dcc744b809841cc4c5.tar.gz bcm5719-llvm-ee390436b92ce1df7873c3dcc744b809841cc4c5.zip |
Replace a fake enum class with the real thing.
llvm-svn: 208943
Diffstat (limited to 'clang/lib/Parse/ParseCXXInlineMethods.cpp')
-rw-r--r-- | clang/lib/Parse/ParseCXXInlineMethods.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/clang/lib/Parse/ParseCXXInlineMethods.cpp b/clang/lib/Parse/ParseCXXInlineMethods.cpp index 595b16e97a9..54244750183 100644 --- a/clang/lib/Parse/ParseCXXInlineMethods.cpp +++ b/clang/lib/Parse/ParseCXXInlineMethods.cpp @@ -923,15 +923,15 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks, ? tok::semi : tok::r_paren); Sema::TentativeAnalysisScope Scope(Actions); - TPResult Result = TPResult::Error(); + TPResult Result = TPResult::Error; ConsumeToken(); switch (CIK) { case CIK_DefaultInitializer: Result = TryParseInitDeclaratorList(); // If we parsed a complete, ambiguous init-declarator-list, this // is only syntactically-valid if it's followed by a semicolon. - if (Result == TPResult::Ambiguous() && Tok.isNot(tok::semi)) - Result = TPResult::False(); + if (Result == TPResult::Ambiguous && Tok.isNot(tok::semi)) + Result = TPResult::False; break; case CIK_DefaultArgument: @@ -940,13 +940,13 @@ bool Parser::ConsumeAndStoreInitializer(CachedTokens &Toks, &InvalidAsDeclaration, /*VersusTemplateArgument*/true); // If this is an expression or a declaration with a missing // 'typename', assume it's not a declaration. - if (Result == TPResult::Ambiguous() && InvalidAsDeclaration) - Result = TPResult::False(); + if (Result == TPResult::Ambiguous && InvalidAsDeclaration) + Result = TPResult::False; break; } // If what follows could be a declaration, it is a declaration. - if (Result != TPResult::False() && Result != TPResult::Error()) { + if (Result != TPResult::False && Result != TPResult::Error) { PA.Revert(); return true; } |