commit | 59a53fa3f8ea73bae52ea36d0038f76e9f10729c | [log] [tgz] |
---|---|---|
author | Fariborz Jahanian <fjahanian@apple.com> | Wed Sep 16 18:09:18 2009 +0000 |
committer | Fariborz Jahanian <fjahanian@apple.com> | Wed Sep 16 18:09:18 2009 +0000 |
tree | 8f09f43089f27dc411f3def9de67f40e0994aa50 | |
parent | 8e674aea310ab0f79e02973857f63c2dd695202c [diff] [blame] |
Do not generate write-barrier in indirect assignment to a weak object. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@82061 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/CodeGenObjC/objc2-weak-assign.m b/test/CodeGenObjC/objc2-weak-assign.m index a3740b2..635ca38 100644 --- a/test/CodeGenObjC/objc2-weak-assign.m +++ b/test/CodeGenObjC/objc2-weak-assign.m
@@ -9,6 +9,10 @@ id* __weak a2[30]; id** __weak a3[40]; +void foo (__weak id *param) { + *param = 0; +} + int main() { *x = 0;