[cfe-commits] r82052 - /cfe/trunk/lib/CodeGen/CGExpr.cpp
Fariborz Jahanian
fjahanian at apple.com
Wed Sep 16 09:49:08 PDT 2009
Author: fjahanian
Date: Wed Sep 16 11:49:08 2009
New Revision: 82052
URL: http://llvm.org/viewvc/llvm-project?rev=82052&view=rev
Log:
Removed a superfluous check before setting
a flag (objc GC).
Modified:
cfe/trunk/lib/CodeGen/CGExpr.cpp
Modified: cfe/trunk/lib/CodeGen/CGExpr.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/CGExpr.cpp?rev=82052&r1=82051&r2=82052&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/CGExpr.cpp (original)
+++ cfe/trunk/lib/CodeGen/CGExpr.cpp Wed Sep 16 11:49:08 2009
@@ -737,8 +737,7 @@
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);
More information about the cfe-commits
mailing list