]> granicus.if.org Git - clang/commitdiff
Fix typo, need parens.
authorMike Stump <mrs@apple.com>
Sat, 7 Mar 2009 14:53:10 +0000 (14:53 +0000)
committerMike Stump <mrs@apple.com>
Sat, 7 Mar 2009 14:53:10 +0000 (14:53 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66337 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/CGBlocks.cpp

index 9e3c4519cfff5fe31b2c227fc62df3ae618987bd..d35fbb96ac1728bbc8ee05ad9713604bd342c069 100644 (file)
@@ -483,8 +483,8 @@ llvm::Value *CodeGenFunction::GetAddrOfBlockDecl(const BlockDeclRefExpr *E) {
     ErrorUnsupported(E, "__block variable in block literal");
   else if (!Enable__block && E->getType()->isBlockPointerType())
     ErrorUnsupported(E, "block pointer in block literal");
-  else if (!Enable__block && E->getDecl()->getAttr<ObjCNSObjectAttr>() ||
-           getContext().isObjCNSObjectType(E->getType()))
+  else if (!Enable__block && (E->getDecl()->getAttr<ObjCNSObjectAttr>() ||
+                              getContext().isObjCNSObjectType(E->getType())))
     ErrorUnsupported(E, "__attribute__((NSObject)) variable in block "
                      "literal");
   else if (!Enable__block && getContext().isObjCObjectPointerType(E->getType()))