bolt/deps/llvm-18.1.8/llvm/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll

21 lines
415 B
LLVM
Raw Normal View History

2025-02-14 19:21:04 +01:00
; RUN: opt < %s -passes=inline -disable-output
; Inlining the first call caused the inliner function to delete the second
; call. Then the inliner tries to inline the second call, which no longer
; exists.
define internal void @Callee1() {
unreachable
}
define void @Callee2() {
ret void
}
define void @caller() {
call void @Callee1( )
call void @Callee2( )
ret void
}