2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -inline -disable-output
|
2004-04-16 04:45:45 +08:00
|
|
|
|
|
|
|
; 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.
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define internal void @Callee1() {
|
2011-09-20 06:11:35 +08:00
|
|
|
unreachable
|
2004-04-16 04:45:45 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @Callee2() {
|
|
|
|
ret void
|
2004-04-16 04:45:45 +08:00
|
|
|
}
|
|
|
|
|
2008-03-01 17:15:35 +08:00
|
|
|
define void @caller() {
|
|
|
|
call void @Callee1( )
|
|
|
|
call void @Callee2( )
|
|
|
|
ret void
|
2004-04-16 04:45:45 +08:00
|
|
|
}
|
2008-03-01 17:15:35 +08:00
|
|
|
|