summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
authorKaelyn Uhrain <rikka@google.com>2012-05-01 01:16:25 +0000
committerKaelyn Uhrain <rikka@google.com>2012-05-01 01:16:25 +0000
commit48506ece7d7a3e9ab6877fe9caaf6015b9d09962 (patch)
tree9fc62e4c21a97af6b244dcc178c8b4e61d13dfa8 /clang/lib/Parse/ParseTentative.cpp
parentb15de1eaedfc0344161f00f270c2d495a01459a1 (diff)
downloadbcm5719-llvm-48506ece7d7a3e9ab6877fe9caaf6015b9d09962.tar.gz
bcm5719-llvm-48506ece7d7a3e9ab6877fe9caaf6015b9d09962.zip
A couple of very small tweaks suggested by Doug in reply to r155580 and r155163.
llvm-svn: 155870
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r--clang/lib/Parse/ParseTentative.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp
index b5251a61777..e9685d25fe0 100644
--- a/clang/lib/Parse/ParseTentative.cpp
+++ b/clang/lib/Parse/ParseTentative.cpp
@@ -933,8 +933,7 @@ Parser::isCXXDeclarationSpecifier(Parser::TPResult BracedCastResult) {
return TPResult::Error();
if (Tok.is(tok::identifier)) {
const Token &Next = NextToken();
- bool NotObjC = !(getLangOpts().ObjC1 || getLangOpts().ObjC2);
- return (NotObjC && Next.is(tok::identifier)) ?
+ return (!getLangOpts().ObjC1 && Next.is(tok::identifier)) ?
TPResult::True() : TPResult::False();
}
return isCXXDeclarationSpecifier(BracedCastResult);
OpenPOWER on IntegriCloud