Removed a superfluous check before setting

a flag (objc GC).

llvm-svn: 82052
This commit is contained in:
Fariborz Jahanian 2009-09-16 16:49:08 +00:00
parent e5acc61f03
commit 4141deb68e
1 changed files with 1 additions and 2 deletions

View File

@ -737,8 +737,7 @@ LValue CodeGenFunction::EmitDeclRefLValue(const DeclRefExpr *E) {
LValue LV = LValue::MakeAddr(V, E->getType().getCVRQualifiers(),
getContext().getObjCGCAttrKind(E->getType()),
E->getType().getAddressSpace());
if (LV.isObjCStrong())
LV.SetGlobalObjCRef(LV, true);
LV.SetGlobalObjCRef(LV, true);
return LV;
} else if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(E->getDecl())) {
llvm::Value* V = CGM.GetAddrOfFunction(FD);