diff options
Diffstat (limited to 'test/CodeGenObjC/blocks.m')
| -rw-r--r-- | test/CodeGenObjC/blocks.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/CodeGenObjC/blocks.m b/test/CodeGenObjC/blocks.m index 091331e8b2bf..d485bb4053b0 100644 --- a/test/CodeGenObjC/blocks.m +++ b/test/CodeGenObjC/blocks.m @@ -84,7 +84,7 @@ void test2(Test2 *x) { // CHECK: [[T0:%.*]] = bitcast [[WEAK_T]]* [[WEAKX]] to i8* // CHECK: call void @_Block_object_dispose(i8* [[T0]], i32 8) - __weak __block Test2 *weakX = x; + __attribute__((objc_gc(weak))) __block Test2 *weakX = x; test2_helper(^{ [weakX destroy]; }); } |
