From b11fa0d25d86169f0e0a29d5398116c0212bb787 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 13 Apr 2009 21:08:27 +0000 Subject: 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 --- lib/CodeGen/CGExpr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/CodeGen/CGExpr.cpp') 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()) { + if (VD->hasAttr()) { bool needsCopyDispose = BlockRequiresCopying(VD->getType()); const llvm::Type *PtrStructTy = V->getType(); const llvm::Type *Ty = PtrStructTy; -- cgit v1.2.3