
escape.ll needed a simple manual check line update. contract-storestrong.ll:test12 is kind of contrived now. The comment says it's for testing bitcasts of pointers, which don't really matter anymore. Leaves identity ptr to ptr bitcasts (which I thought were illegal).
17 lines
467 B
LLVM
17 lines
467 B
LLVM
; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s
|
|
|
|
; This file makes sure that clang.arc.used is removed even if no other ARC
|
|
; interesting calls are in the module.
|
|
|
|
declare void @llvm.objc.clang.arc.use(...) nounwind
|
|
|
|
; Kill calls to @llvm.objc.clang.arc.use(...)
|
|
; CHECK-LABEL: define void @test0(
|
|
; CHECK-NOT: clang.arc.use
|
|
; CHECK: }
|
|
define void @test0(ptr %a, ptr %b) {
|
|
call void (...) @llvm.objc.clang.arc.use(ptr %a, ptr %b) nounwind
|
|
ret void
|
|
}
|
|
|