mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-09 05:31:37 +00:00
2453dff96a
code. While here, reduce indentation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152803 91177308-0d34-0410-b5e6-96231b3b80d8
16 lines
398 B
LLVM
16 lines
398 B
LLVM
; RUN: opt -disable-output -objc-arc-contract %s
|
|
; test that we don't crash on unreachable code
|
|
%2 = type opaque
|
|
|
|
define void @_i_Test__foo(%2 *%x) {
|
|
entry:
|
|
unreachable
|
|
|
|
return: ; No predecessors!
|
|
%bar = bitcast %2* %x to i8*
|
|
%foo = call i8* @objc_autoreleaseReturnValue(i8* %bar) nounwind
|
|
ret void
|
|
}
|
|
|
|
declare i8* @objc_autoreleaseReturnValue(i8*)
|