summaryrefslogtreecommitdiff
path: root/test/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-04-15 20:45:45 +0000
committerChris Lattner <sabre@nondot.org>2004-04-15 20:45:45 +0000
commit6f352f30752aca2e394d5a8f40c10227122d2755 (patch)
tree98ee9029a4aae1a1adbdaf200a6377493000ecaf /test/Transforms
parentd244057a48660c3cd30d219118ece3f947947790 (diff)
downloadllvm-6f352f30752aca2e394d5a8f40c10227122d2755.tar.gz
llvm-6f352f30752aca2e394d5a8f40c10227122d2755.tar.bz2
llvm-6f352f30752aca2e394d5a8f40c10227122d2755.tar.xz
New testcase that Brian provided which crashes the inliner
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12969 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms')
-rw-r--r--test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll21
1 files changed, 21 insertions, 0 deletions
diff --git a/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll b/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
new file mode 100644
index 0000000000..8ac123f32c
--- /dev/null
+++ b/test/Transforms/Inline/2004-04-15-InlineDeletesCall.ll
@@ -0,0 +1,21 @@
+; RUN: llvm-as < %s | opt -inline -disable-output
+
+; Inlining the first call caused the inliner function to delete the second
+; call. Then the inliner tries to inline the second call, which no longer
+; exists.
+
+implementation
+
+internal void %Callee1() {
+ unwind
+}
+
+void %Callee2() {
+ ret void
+}
+
+void %caller() {
+ call void %Callee1()
+ call void %Callee2()
+ ret void
+}