summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-05-13 06:00:14 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-05-13 06:00:14 +0000
commit3230f0ac256e6aad22c6e942a6c8ffa76bef0e67 (patch)
treec945eda332e50ae8189fbd9ebaecab05e367ee5d
parentd3c6dfe85337f891feb756de0d27b10aa3dee81c (diff)
downloadbcm5719-llvm-3230f0ac256e6aad22c6e942a6c8ffa76bef0e67.tar.gz
bcm5719-llvm-3230f0ac256e6aad22c6e942a6c8ffa76bef0e67.zip
Add testcase for r103653.
llvm-svn: 103699
-rw-r--r--llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll28
1 files changed, 28 insertions, 0 deletions
diff --git a/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll b/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
new file mode 100644
index 00000000000..2863e715506
--- /dev/null
+++ b/llvm/test/Transforms/Inline/2010-05-12-ValueMap.ll
@@ -0,0 +1,28 @@
+; RUN: opt -inline -mergefunc -disable-output
+
+; This tests for a bug where the inliner kept the functions in a ValueMap after
+; it had completed and a ModulePass started to run. LLVM would crash deleting
+; a function that was still a key in the ValueMap.
+
+define internal fastcc void @list_Cdr1918() nounwind inlinehint {
+ unreachable
+}
+
+define internal fastcc void @list_PairSecond1927() nounwind inlinehint {
+ call fastcc void @list_Cdr1918() nounwind inlinehint
+ unreachable
+}
+
+define internal fastcc void @list_Cdr3164() nounwind inlinehint {
+ unreachable
+}
+
+define internal fastcc void @list_Nconc3167() nounwind inlinehint {
+ call fastcc void @list_Cdr3164() nounwind inlinehint
+ unreachable
+}
+
+define void @term_Equal() nounwind {
+ call fastcc void @list_Cdr3164() nounwind inlinehint
+ unreachable
+}
OpenPOWER on IntegriCloud