summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJohn McCall <rjmccall@apple.com>2013-03-22 21:38:36 +0000
committerJohn McCall <rjmccall@apple.com>2013-03-22 21:38:36 +0000
commit1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9 (patch)
tree8a45c19ffc397182c746ceac02b960757b6a55bb /test
parent46125e1a8b01b4755dca9528ae64f7ffc3d34c66 (diff)
downloadllvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.tar.gz
llvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.tar.bz2
llvm-1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9.tar.xz
Kill every call to @clang.arc.use in the ARC contract phase.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@177769 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/ObjCARC/contract.ll11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/Transforms/ObjCARC/contract.ll b/test/Transforms/ObjCARC/contract.ll
index b6fba59603..0b60683d99 100644
--- a/test/Transforms/ObjCARC/contract.ll
+++ b/test/Transforms/ObjCARC/contract.ll
@@ -162,4 +162,15 @@ return: ; preds = %if.then, %entry
ret i8* %retval
}
+; Kill calls to @clang.arc.use(...)
+; CHECK: define void @test9(
+; CHECK-NOT: clang.arc.use
+; CHECK: }
+define void @test9(i8* %a, i8* %b) {
+ call void (...)* @clang.arc.use(i8* %a, i8* %b) nounwind
+ ret void
+}
+
+declare void @clang.arc.use(...) nounwind
+
; CHECK: attributes [[NUW]] = { nounwind }