2010-05-12-ValueMap.ll 821 B

12345678910111213141516171819202122232425262728
  1. ; RUN: opt -inline -mergefunc -disable-output < %s
  2. ; This tests for a bug where the inliner kept the functions in a ValueMap after
  3. ; it had completed and a ModulePass started to run. LLVM would crash deleting
  4. ; a function that was still a key in the ValueMap.
  5. define internal fastcc void @list_Cdr1918() nounwind inlinehint {
  6. unreachable
  7. }
  8. define internal fastcc void @list_PairSecond1927() nounwind inlinehint {
  9. call fastcc void @list_Cdr1918() nounwind inlinehint
  10. unreachable
  11. }
  12. define internal fastcc void @list_Cdr3164() nounwind inlinehint {
  13. unreachable
  14. }
  15. define internal fastcc void @list_Nconc3167() nounwind inlinehint {
  16. call fastcc void @list_Cdr3164() nounwind inlinehint
  17. unreachable
  18. }
  19. define void @term_Equal() nounwind {
  20. call fastcc void @list_Cdr3164() nounwind inlinehint
  21. unreachable
  22. }