A couple of very small tweaks suggested by Doug in reply to r155580 and r155163.
llvm-svn: 155870
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp
index b5251a6..e9685d2 100644
--- a/clang/lib/Parse/ParseTentative.cpp
+++ b/clang/lib/Parse/ParseTentative.cpp
@@ -933,8 +933,7 @@
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);