diff options
author | Mike Stump <mrs@apple.com> | 2009-03-07 14:53:10 +0000 |
---|---|---|
committer | Mike Stump <mrs@apple.com> | 2009-03-07 14:53:10 +0000 |
commit | d9728222a4de03dc51e90e6a569be82b987ca1b4 (patch) | |
tree | c2777273a06ddb624be501db5bb4eb7c7be8edf1 /clang/lib | |
parent | 51bbcf834c5d56027d5aebb22e0b6fd6e1dd6aea (diff) | |
download | bcm5719-llvm-d9728222a4de03dc51e90e6a569be82b987ca1b4.tar.gz bcm5719-llvm-d9728222a4de03dc51e90e6a569be82b987ca1b4.zip |
Fix typo, need parens.
llvm-svn: 66337
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBlocks.cpp b/clang/lib/CodeGen/CGBlocks.cpp index 9e3c4519cff..d35fbb96ac1 100644 --- a/clang/lib/CodeGen/CGBlocks.cpp +++ b/clang/lib/CodeGen/CGBlocks.cpp @@ -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())) |