summaryrefslogtreecommitdiff
path: root/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
diff options
context:
space:
mode:
authorTanya Lattner <tonic@nondot.org>2008-03-01 09:15:35 +0000
committerTanya Lattner <tonic@nondot.org>2008-03-01 09:15:35 +0000
commitec9a35a6f9143cfa325e0413cc297c48f627973a (patch)
treec1b0621415acc20f94152c51174d53fae3dbc8cc /test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
parentab3b77834c9232e4c13acb29afe1920b97c5a20b (diff)
downloadllvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.gz
llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.bz2
llvm-ec9a35a6f9143cfa325e0413cc297c48f627973a.tar.xz
Remove llvm-upgrade and update test cases.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@47793 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll')
-rw-r--r--test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll27
1 files changed, 13 insertions, 14 deletions
diff --git a/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll b/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
index a88e04155b..e6345c13eb 100644
--- a/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
+++ b/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
@@ -1,20 +1,19 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -adce -disable-output
+; RUN: llvm-as < %s | opt -adce -disable-output
-implementation ; Functions:
+define void @test() {
+ br i1 false, label %then, label %endif
-void %test() {
- br bool false, label %then, label %endif
+then: ; preds = %0
+ invoke void null( i8* null )
+ to label %invoke_cont unwind label %invoke_catch
-then:
- invoke void null( sbyte* null )
- to label %invoke_cont except label %invoke_catch
+invoke_catch: ; preds = %then
+ unwind
-invoke_catch:
- unwind
+invoke_cont: ; preds = %then
+ ret void
-invoke_cont:
- ret void
-
-endif:
- ret void
+endif: ; preds = %0
+ ret void
}
+