diff options
author | John McCall <rjmccall@apple.com> | 2013-03-22 21:38:36 +0000 |
---|---|---|
committer | John McCall <rjmccall@apple.com> | 2013-03-22 21:38:36 +0000 |
commit | 20182ac0c7935e3d70fb837a48feca47e00a613e (patch) | |
tree | 1deef20893eafc488ca24ceb6ccafc6d96cfd6d4 /llvm/test/Transforms/ObjCARC/contract.ll | |
parent | b3b4a371387b68f3c2da0914fbac989e3e49572a (diff) | |
download | bcm5719-llvm-20182ac0c7935e3d70fb837a48feca47e00a613e.tar.gz bcm5719-llvm-20182ac0c7935e3d70fb837a48feca47e00a613e.zip |
Kill every call to @clang.arc.use in the ARC contract phase.
llvm-svn: 177769
Diffstat (limited to 'llvm/test/Transforms/ObjCARC/contract.ll')
-rw-r--r-- | llvm/test/Transforms/ObjCARC/contract.ll | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/Transforms/ObjCARC/contract.ll b/llvm/test/Transforms/ObjCARC/contract.ll index b6fba596034..0b60683d999 100644 --- a/llvm/test/Transforms/ObjCARC/contract.ll +++ b/llvm/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 } |