2004-04-15-InlineDeletesCall.ll 408 B

1234567891011121314151617181920
  1. ; RUN: opt < %s -inline -disable-output
  2. ; Inlining the first call caused the inliner function to delete the second
  3. ; call. Then the inliner tries to inline the second call, which no longer
  4. ; exists.
  5. define internal void @Callee1() {
  6. unreachable
  7. }
  8. define void @Callee2() {
  9. ret void
  10. }
  11. define void @caller() {
  12. call void @Callee1( )
  13. call void @Callee2( )
  14. ret void
  15. }