diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-05-13 06:00:14 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-05-13 06:00:14 +0000 |
commit | 3230f0ac256e6aad22c6e942a6c8ffa76bef0e67 (patch) | |
tree | c945eda332e50ae8189fbd9ebaecab05e367ee5d | |
parent | d3c6dfe85337f891feb756de0d27b10aa3dee81c (diff) | |
download | bcm5719-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.ll | 28 |
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 +} |