diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-04-07 23:29:58 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-04-07 23:29:58 +0000 |
commit | edc287751a4b05e3b4d8ff2b38fa30c5b59a548b (patch) | |
tree | 6944cd02cf8be5aa01f3c3159fb6f096eb5831ce /lib/Parse/Parser.cpp | |
parent | 1e3c6f4ab525beb31390f6b2f1154bd5c63bfb3f (diff) |
Fix some redundant errors by changing CXXScopeSpec::isSet calls into
isNotEmpty calls.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@100722 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Parse/Parser.cpp')
-rw-r--r-- | lib/Parse/Parser.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Parse/Parser.cpp b/lib/Parse/Parser.cpp index 489586c36f..5c31c1d9a3 100644 --- a/lib/Parse/Parser.cpp +++ b/lib/Parse/Parser.cpp @@ -1046,7 +1046,7 @@ bool Parser::TryAnnotateCXXScopeToken(bool EnteringContext) { CXXScopeSpec SS; if (ParseOptionalCXXScopeSpecifier(SS, /*ObjectType=*/0, EnteringContext)) return true; - if (!SS.isSet()) + if (SS.isEmpty()) return false; // Push the current token back into the token stream (or revert it if it is |