brintos

brintos / llvm-project-archived public Read only

0
0
Text · 467 B · 811cc29 Raw
17 lines · plain
1; RUN: opt -passes=objc-arc-contract -S < %s | FileCheck %s2 3; This file makes sure that clang.arc.used is removed even if no other ARC4; interesting calls are in the module.5 6declare void @llvm.objc.clang.arc.use(...) nounwind7 8; Kill calls to @llvm.objc.clang.arc.use(...)9; CHECK-LABEL: define void @test0(10; CHECK-NOT: clang.arc.use11; CHECK: }12define void @test0(ptr %a, ptr %b) {13  call void (...) @llvm.objc.clang.arc.use(ptr %a, ptr %b) nounwind14  ret void15}16 17