1 ; RUN: opt -disable-output -passes=objc-arc-contract < %s
2 ; test that we don't crash on unreachable code
5 define void @_i_Test__foo(ptr %x) {
9 return: ; No predecessors!
10 %foo = call ptr @llvm.objc.autoreleaseReturnValue(ptr %x) nounwind
12 call void @use_pointer(ptr %foo)
13 call void @llvm.objc.release(ptr %foo) nounwind
17 declare ptr @llvm.objc.autoreleaseReturnValue(ptr)
18 declare void @llvm.objc.release(ptr)
19 declare void @callee()
20 declare void @use_pointer(ptr)