]> granicus.if.org Git - clang/commitdiff
Removed a superfluous check before setting
authorFariborz Jahanian <fjahanian@apple.com>
Wed, 16 Sep 2009 16:49:08 +0000 (16:49 +0000)
committerFariborz Jahanian <fjahanian@apple.com>
Wed, 16 Sep 2009 16:49:08 +0000 (16:49 +0000)
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

index 699d7b16ec3362c8bddfbd6b22b1fd346a9371a3..f163c185529daa2251b5599be9ca30505039f842 100644 (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);