summaryrefslogtreecommitdiff
path: root/test/Transforms/ObjCARC
diff options
context:
space:
mode:
authorMichael Gottesman <mgottesman@apple.com>2013-03-29 22:44:59 +0000
committerMichael Gottesman <mgottesman@apple.com>2013-03-29 22:44:59 +0000
commit2030d5f3e9bdde75c9585f1df5994dd4d63ce5f1 (patch)
treec7aa2a35ad639c73aad70907323d18766529a634 /test/Transforms/ObjCARC
parente1e9366281a98cd06b61d5d7e136ce2b1a433ba6 (diff)
downloadllvm-2030d5f3e9bdde75c9585f1df5994dd4d63ce5f1.tar.gz
llvm-2030d5f3e9bdde75c9585f1df5994dd4d63ce5f1.tar.bz2
llvm-2030d5f3e9bdde75c9585f1df5994dd4d63ce5f1.tar.xz
Updated test0 of retain-not-declared.ll to reflect the fact that objc-arc-expand runs before objc-arc/objc-arc-contract.
Specifically, objc-arc-expand will make sure that the objc_retainAutoreleasedReturnValue, objc_autoreleaseReturnValue, and ret will all have %call as an argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@178382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ObjCARC')
-rw-r--r--test/Transforms/ObjCARC/retain-not-declared.ll4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/Transforms/ObjCARC/retain-not-declared.ll b/test/Transforms/ObjCARC/retain-not-declared.ll
index e834179bb7..165829f7c0 100644
--- a/test/Transforms/ObjCARC/retain-not-declared.ll
+++ b/test/Transforms/ObjCARC/retain-not-declared.ll
@@ -21,8 +21,8 @@ define i8* @test0(i8* %p) {
entry:
%call = tail call i8* @objc_unretainedObject(i8* %p)
%0 = tail call i8* @objc_retainAutoreleasedReturnValue(i8* %call) nounwind
- %1 = tail call i8* @objc_autoreleaseReturnValue(i8* %0) nounwind
- ret i8* %1
+ %1 = tail call i8* @objc_autoreleaseReturnValue(i8* %call) nounwind
+ ret i8* %call
}
; Properly create the @objc_retain declaration when it doesn't already exist.