From 1f9c4407c0e66f0c473ed5d6e3abcedda3a838c9 Mon Sep 17 00:00:00 2001 From: John McCall Date: Fri, 22 Mar 2013 21:38:36 +0000 Subject: 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 --- test/Transforms/ObjCARC/contract.ll | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'test/Transforms/ObjCARC/contract.ll') 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 } -- cgit v1.2.3-18-g5258