From 8e674aea310ab0f79e02973857f63c2dd695202c Mon Sep 17 00:00:00 2001 From: Fariborz Jahanian Date: Wed, 16 Sep 2009 16:49:08 +0000 Subject: 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 --- lib/CodeGen/CGExpr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/CodeGen/CGExpr.cpp') 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); -- cgit v1.2.3