diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-04-13 21:08:27 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-04-13 21:08:27 +0000 |
| commit | b11fa0d25d86169f0e0a29d5398116c0212bb787 (patch) | |
| tree | 17259708877643ec401c924c01c1172c8e6b6e20 /lib/CodeGen/CGExpr.cpp | |
| parent | 2d41cc1a8c82d892b82218d20487d0cde199dc77 (diff) | |
| download | clang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.gz clang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.bz2 clang-b11fa0d25d86169f0e0a29d5398116c0212bb787.tar.xz | |
Update to use hasAttr() instead of getAttr().
- No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@68987 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExpr.cpp')
| -rw-r--r-- | lib/CodeGen/CGExpr.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index e1cb1d17ec..2e7161c080 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -644,7 +644,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) { // local static? if (!VD->hasLocalStorage()) attr = getContext().getObjCGCAttrKind(E->getType()); - if (VD->getAttr<BlocksAttr>()) { + if (VD->hasAttr<BlocksAttr>()) { bool needsCopyDispose = BlockRequiresCopying(VD->getType()); const llvm::Type *PtrStructTy = V->getType(); const llvm::Type *Ty = PtrStructTy; |
