aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2009-09-16 16:49:08 +0000
committerFariborz Jahanian <fjahanian@apple.com>2009-09-16 16:49:08 +0000
commit8e674aea310ab0f79e02973857f63c2dd695202c (patch)
treed901ca90946ccfe9b945258ecb66e87271dbbc2b
parent0a8f847e97f40cce51dc69051b964732333dc028 (diff)
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
-rw-r--r--lib/CodeGen/CGExpr.cpp3
1 files changed, 1 insertions, 2 deletions
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<FunctionDecl>(E->getDecl())) {
llvm::Value* V = CGM.GetAddrOfFunction(FD);