summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGExpr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-04-13 21:08:27 +0000
commit4184ac847f91dc7a8644ad6c5a3e389923117eb3 (patch)
tree6bf3412b1f1afd38e9c10fb2945b62f3e0204644 /clang/lib/CodeGen/CGExpr.cpp
parent6c1426308c29edd75b8b964b883b6f213da1b7c4 (diff)
downloadbcm5719-llvm-4184ac847f91dc7a8644ad6c5a3e389923117eb3.tar.gz
bcm5719-llvm-4184ac847f91dc7a8644ad6c5a3e389923117eb3.zip
Update to use hasAttr() instead of getAttr().
- No functionality change. llvm-svn: 68987
Diffstat (limited to 'clang/lib/CodeGen/CGExpr.cpp')
-rw-r--r--clang/lib/CodeGen/CGExpr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGExpr.cpp b/clang/lib/CodeGen/CGExpr.cpp
index e1cb1d17ec0..2e7161c080e 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/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;
OpenPOWER on IntegriCloud