Skip to content

Commit 3230f0a

Browse files
committed
Add testcase for r103653.
llvm-svn: 103699
1 parent d3c6dfe commit 3230f0a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
; RUN: opt -inline -mergefunc -disable-output
2+
3+
; This tests for a bug where the inliner kept the functions in a ValueMap after
4+
; it had completed and a ModulePass started to run. LLVM would crash deleting
5+
; a function that was still a key in the ValueMap.
6+
7+
define internal fastcc void @list_Cdr1918() nounwind inlinehint {
8+
unreachable
9+
}
10+
11+
define internal fastcc void @list_PairSecond1927() nounwind inlinehint {
12+
call fastcc void @list_Cdr1918() nounwind inlinehint
13+
unreachable
14+
}
15+
16+
define internal fastcc void @list_Cdr3164() nounwind inlinehint {
17+
unreachable
18+
}
19+
20+
define internal fastcc void @list_Nconc3167() nounwind inlinehint {
21+
call fastcc void @list_Cdr3164() nounwind inlinehint
22+
unreachable
23+
}
24+
25+
define void @term_Equal() nounwind {
26+
call fastcc void @list_Cdr3164() nounwind inlinehint
27+
unreachable
28+
}

0 commit comments

Comments
 (0)