1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00

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.

llvm-svn: 178382
This commit is contained in:
Michael Gottesman 2013-03-29 22:44:59 +00:00
parent 7776961622
commit 1bc2d353ed

View 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.