Skip to content
Snippets Groups Projects
Commit 94128300 authored by Michael Gottesman's avatar Michael Gottesman
Browse files

Updated test0 of retain-not-declared.ll to reflect the fact that...

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
parent 8e492c23
No related branches found
No related tags found
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment