summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/ObjCARC/intrinsic-use-isolated.ll
blob: 4ccad033aeb8926a03fc43319df5262ef6c0b65b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
; RUN: opt -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(i8* %a, i8* %b) {
  call void (...) @llvm.objc.clang.arc.use(i8* %a, i8* %b) nounwind
  ret void
}

OpenPOWER on IntegriCloud