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(),
}
if (NewVD->hasLocalStorage() && T.isObjCGCWeak()
- && !NewVD->getAttr<BlocksAttr>())
+ && !NewVD->hasAttr<BlocksAttr>())
Diag(NewVD->getLocation(), diag::warn_attribute_weak_on_local);
bool isIllegalVLA = T->isVariableArrayType() && NewVD->hasGlobalStorage();