mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-30 05:29:47 +00:00
by inserting unreachable after no-return calls. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44099 91177308-0d34-0410-b5e6-96231b3b80d8
12 lines
243 B
LLVM
12 lines
243 B
LLVM
; RUN: llvm-as < %s | opt -simplifycfg | llvm-dis | grep unreachable
|
|
; PR1796
|
|
|
|
declare void @Finisher(i32) noreturn
|
|
|
|
define void @YYY(i32) {
|
|
tail call void @Finisher(i32 %0) noreturn
|
|
tail call void @Finisher(i32 %0) noreturn
|
|
ret void
|
|
}
|
|
|