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