[cfe-commits] r66337 - /cfe/trunk/lib/CodeGen/CGBlocks.cpp

Mike Stump mrs at apple.com
Sat Mar 7 06:53:12 PST 2009


Author: mrs
Date: Sat Mar  7 08:53:10 2009
New Revision: 66337

URL: http://llvm.org/viewvc/llvm-project?rev=66337&view=rev
Log:
Fix typo, need parens.

Modified:
    cfe/trunk/lib/CodeGen/CGBlocks.cpp

Modified: cfe/trunk/lib/CodeGen/CGBlocks.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGBlocks.cpp?rev=66337&r1=66336&r2=66337&view=diff

==============================================================================
--- cfe/trunk/lib/CodeGen/CGBlocks.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGBlocks.cpp Sat Mar  7 08:53:10 2009
@@ -483,8 +483,8 @@
     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()))





More information about the cfe-commits mailing list