summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorMike Stump <mrs@apple.com>2009-04-14 02:45:29 +0000
committerMike Stump <mrs@apple.com>2009-04-14 02:45:29 +0000
commit4c0dc0e48a508831469715a221c7eaac693d4316 (patch)
treea9163fd57a1b7600504fe93c304682dac91c8bf7 /clang/lib/CodeGen
parent0ca16601290fa748148bc9cba4b63fb07157ea2d (diff)
downloadbcm5719-llvm-4c0dc0e48a508831469715a221c7eaac693d4316.tar.gz
bcm5719-llvm-4c0dc0e48a508831469715a221c7eaac693d4316.zip
Use hasAttr instead of getAttr for conditionals.
llvm-svn: 69021
Diffstat (limited to 'clang/lib/CodeGen')
-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 a1eb5c4e577..1db3b6ebc06 100644
--- a/clang/lib/CodeGen/CGExpr.cpp
+++ b/clang/lib/CodeGen/CGExpr.cpp
@@ -631,7 +631,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) {
if (VD && (VD->isBlockVarDecl() || isa<ParmVarDecl>(VD) ||
isa<ImplicitParamDecl>(VD))) {
LValue LV;
- bool GCable = VD->hasLocalStorage() && ! VD->getAttr<BlocksAttr>();
+ bool GCable = VD->hasLocalStorage() && ! VD->hasAttr<BlocksAttr>();
if (VD->hasExternalStorage()) {
LV = LValue::MakeAddr(CGM.GetAddrOfGlobalVar(VD),
E->getType().getCVRQualifiers(),
OpenPOWER on IntegriCloud