From: Fariborz Jahanian Date: Wed, 16 Sep 2009 16:49:08 +0000 (+0000) Subject: Removed a superfluous check before setting X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8e674aea310ab0f79e02973857f63c2dd695202c;p=clang Removed a superfluous check before setting a flag (objc GC). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82052 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/CGExpr.cpp b/lib/CodeGen/CGExpr.cpp index 699d7b16ec..f163c18552 100644 --- a/lib/CodeGen/CGExpr.cpp +++ b/lib/CodeGen/CGExpr.cpp @@ -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(E->getDecl())) { llvm::Value* V = CGM.GetAddrOfFunction(FD);