Fix typo, need parens.

llvm-svn: 66337
This commit is contained in:
Mike Stump 2009-03-07 14:53:10 +00:00
parent 51bbcf834c
commit d9728222a4
1 changed files with 2 additions and 2 deletions

View 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()))