aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-10-17 05:39:39 +0000
committerChris Lattner <sabre@nondot.org>2009-10-17 05:39:39 +0000
commit8a5b9f815bc8bcbac451d4d6e9c4f23fc2376683 (patch)
treefe9b1eae457d127c217791d9efd7392636810cda /test
parent14bff688ddb01a7b6c8dee87934d4535b27e71c0 (diff)
downloadexternal_llvm-8a5b9f815bc8bcbac451d4d6e9c4f23fc2376683.zip
external_llvm-8a5b9f815bc8bcbac451d4d6e9c4f23fc2376683.tar.gz
external_llvm-8a5b9f815bc8bcbac451d4d6e9c4f23fc2376683.tar.bz2
Simplify some code (first hunk) and fix PR5208 (second hunk) by
updating the callgraph when introducing a call. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/crash.ll33
1 files changed, 32 insertions, 1 deletions
diff --git a/test/Transforms/Inline/crash.ll b/test/Transforms/Inline/crash.ll
index 30eae7a..f34b44c 100644
--- a/test/Transforms/Inline/crash.ll
+++ b/test/Transforms/Inline/crash.ll
@@ -51,7 +51,38 @@ entry:
unreachable
}
+declare fastcc void @list_Rplacd1284() nounwind ssp
-declare fastcc void @list_Rplacd1284() nounwind ssp
+
+;============================
+; PR5208
+
+define void @AAA() {
+entry:
+ %A = alloca i8, i32 undef, align 1
+ invoke fastcc void @XXX()
+ to label %invcont98 unwind label %lpad156
+
+invcont98:
+ unreachable
+
+lpad156:
+ unreachable
+}
+
+declare fastcc void @YYY()
+
+define internal fastcc void @XXX() {
+entry:
+ %B = alloca i8, i32 undef, align 1
+ invoke fastcc void @YYY()
+ to label %bb260 unwind label %lpad
+
+bb260:
+ ret void
+
+lpad:
+ unwind
+}