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