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