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 | 8e5d9f1aadc11fb39b669770f729fbe40c94f5be (patch) | |
tree | 8e2a1f15b6e6cd76a4716c2126b523a95be68da4 /lib/CodeGen/CGBlocks.cpp | |
parent | 43af76e845c95be160c088ec11ba3c43e2527fa8 (diff) |
Fix typo, need parens.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@66337 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGBlocks.cpp')
-rw-r--r-- | lib/CodeGen/CGBlocks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGBlocks.cpp b/lib/CodeGen/CGBlocks.cpp index 9e3c4519cf..d35fbb96ac 100644 --- a/lib/CodeGen/CGBlocks.cpp +++ b/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())) |