clang-1/test/CodeGenObjCXX
Fariborz Jahanian 82c458ea76 objective-C arc: load of a __weak object happens via call to
objc_loadWeak. This retains and autorelease the weakly-refereced
object. This hidden autorelease sometimes makes __weak variable alive even
after the weak reference is erased, because the object is still referenced
by an autorelease pool. This patch overcomes this behavior by loading a 
weak object via call to objc_loadWeakRetained(), followng it by objc_release
at appropriate place, thereby removing the hidden autorelease. // rdar://10849570


git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@168740 91177308-0d34-0410-b5e6-96231b3b80d8
2012-11-27 23:02:53 +00:00
..
Inputs
2007-10-03-MetadataPointers.mm
2010-08-04-Template.mm
2010-08-06-X.Y-syntax.mm
address-safety-attr.mm
arc-exceptions.mm
arc-globals.mm
arc-mangle.mm
arc-move.mm
arc-new-delete.mm
arc-pseudo-destructors.mm
arc-references.mm
arc-returns-inner-reference-ptr.mm
arc-special-member-functions.mm
arc.mm
block-in-template-inst.mm
block-var-layout.mm
blocks.mm
catch-id-type.mm
copy.mm
copyable-property-object.mm
debug-info.mm
encode.mm
exceptions.mm
foreach-statement.mm
gc.mm
implementation-in-extern-c.mm
implicit-copy-assign-operator.mm
implicit-copy-constructor.mm
ivar-objects.mm
lambda-expressions.mm
literals.mm
lvalue-reference-getter.mm
mangle-blocks.mm
mangle.mm
message-reference.mm
method-local-extern-mangle.mm
nrvo.mm
objc-container-subscripting-1.mm
objc-container-subscripting.mm
property-derived-to-base-conv.mm
property-dot-copy.mm
property-dot-reference.mm
property-object-conditional-exp.mm
property-object-reference-1.mm
property-object-reference-2.mm
property-object-reference.mm
property-objects.mm
property-reference.mm
refence-assign-write-barrier.mm
references.mm
rtti.mm
selector-expr-lvalue.mm
write-barrier-global-assign.mm