summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CGObjC.cpp
diff options
context:
space:
mode:
authorFariborz Jahanian <fjahanian@apple.com>2011-04-05 23:01:27 +0000
committerFariborz Jahanian <fjahanian@apple.com>2011-04-05 23:01:27 +0000
commit10a95ca876091340e2b6425ec53310d577928c29 (patch)
treeca84f840271b6873231624c7198d4244d723691a /clang/lib/CodeGen/CGObjC.cpp
parentc3656d29f6984ebfdeed497330530ba9d43e8417 (diff)
downloadbcm5719-llvm-10a95ca876091340e2b6425ec53310d577928c29.tar.gz
bcm5719-llvm-10a95ca876091340e2b6425ec53310d577928c29.zip
Fixes a regression caused by my last patch.
As a result, I had to remove a c++ version of a clang test which requires more scrutiny on my part. llvm-svn: 128950
Diffstat (limited to 'clang/lib/CodeGen/CGObjC.cpp')
-rw-r--r--clang/lib/CodeGen/CGObjC.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/CodeGen/CGObjC.cpp b/clang/lib/CodeGen/CGObjC.cpp
index 78305c6ddc6..fed19b4267a 100644
--- a/clang/lib/CodeGen/CGObjC.cpp
+++ b/clang/lib/CodeGen/CGObjC.cpp
@@ -287,7 +287,7 @@ void CodeGenFunction::GenerateObjCGetter(ObjCImplementationDecl *IMP,
}
else if (hasAggregateLLVMType(IVART)) {
bool IsStrong = false;
- if ((IsAtomic || (IsStrong = IvarTypeWithAggrGCObjects(IVART)))
+ if ((IsStrong = IvarTypeWithAggrGCObjects(IVART))
&& CurFnInfo->getReturnInfo().getKind() == ABIArgInfo::Indirect
&& CGM.getObjCRuntime().GetGetStructFunction()) {
GenerateObjCGetterBody(Ivar, IsAtomic, IsStrong);
@@ -448,6 +448,7 @@ void CodeGenFunction::GenerateObjCSetter(ObjCImplementationDecl *IMP,
ReturnValueSlot(), Args);
} else if (IsAtomic && hasAggregateLLVMType(IVART) &&
!IVART->isAnyComplexType() &&
+ !PID->getGetterCXXConstructor() &&
((Triple.getArch() == llvm::Triple::x86 &&
(getContext().getTypeSizeInChars(IVART)
> CharUnits::fromQuantity(4))) ||
OpenPOWER on IntegriCloud