Updated test0 of retain-not-declared.ll to reflect the fact that objc-arc-expand...
authorMichael Gottesman <mgottesman@apple.com>
Fri, 29 Mar 2013 22:44:59 +0000 (22:44 +0000)
committerMichael Gottesman <mgottesman@apple.com>
Fri, 29 Mar 2013 22:44:59 +0000 (22:44 +0000)
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

test/Transforms/ObjCARC/retain-not-declared.ll

index e834179bb71259b23fc7f0b092d1bcc683798bb1..165829f7c01f514d04fc58220ba33aa0b2e056b6 100644 (file)
@@ -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.