diff options
author | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-05 00:32:13 +0000 |
---|---|---|
committer | Fariborz Jahanian <fjahanian@apple.com> | 2013-01-05 00:32:13 +0000 |
commit | cc2ae88e3cc7d9b56a884a89730cb178a5783524 (patch) | |
tree | 1265885e66cee062929f8e37359319de56c6d8e5 /clang/test/CodeGenObjC/arc-unoptimized-byref-var.m | |
parent | 770c550990aae2dcea217b1454d65b04da41b288 (diff) | |
download | bcm5719-llvm-cc2ae88e3cc7d9b56a884a89730cb178a5783524.tar.gz bcm5719-llvm-cc2ae88e3cc7d9b56a884a89730cb178a5783524.zip |
In my last patch initialize the destination to null (with a simple store) before doing a storeStrong to it.
// rdar://12530881
llvm-svn: 171572
Diffstat (limited to 'clang/test/CodeGenObjC/arc-unoptimized-byref-var.m')
-rw-r--r-- | clang/test/CodeGenObjC/arc-unoptimized-byref-var.m | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/test/CodeGenObjC/arc-unoptimized-byref-var.m b/clang/test/CodeGenObjC/arc-unoptimized-byref-var.m index 4cfc5e9903e..080da63ca37 100644 --- a/clang/test/CodeGenObjC/arc-unoptimized-byref-var.m +++ b/clang/test/CodeGenObjC/arc-unoptimized-byref-var.m @@ -7,6 +7,7 @@ void test19() { // CHECK-UNOPT: [[X:%.*]] = getelementptr inbounds [[BYREF_T:%.*]]* [[VAR:%.*]], i32 0, i32 6 // CHECK-UNOPT: [[X2:%.*]] = getelementptr inbounds [[BYREF_T:%.*]]* [[VAR1:%.*]], i32 0, i32 6 // CHECK-UNOPT-NEXT: [[SIX:%.*]] = load i8** [[X2]], align 8 +// CHECK-UNOPT-NEXT: store i8* null, i8** [[X]], align 8 // CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X]], i8* [[SIX]]) nounwind // CHECK-UNOPT-NEXT: call void @objc_storeStrong(i8** [[X2]], i8* null) nounwind // CHECK-UNOPT-NEXT: ret void |