aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
diff options
context:
space:
mode:
Diffstat (limited to 'test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll')
-rw-r--r--test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll24
1 files changed, 13 insertions, 11 deletions
diff --git a/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll b/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
index c3b4194e1e..a0fe781774 100644
--- a/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
+++ b/test/Transforms/SimplifyCFG/2005-10-02-InvokeSimplify.ll
@@ -1,13 +1,15 @@
-; RUN: llvm-upgrade < %s | llvm-as | opt -simplifycfg -disable-output
+; RUN: llvm-as < %s | opt -simplifycfg -disable-output
-bool %foo() {
- %X = invoke bool %foo() to label %N unwind label %F
-F:
- ret bool false
-N:
- br bool %X, label %A, label %B
-A:
- ret bool true
-B:
- ret bool true
+define i1 @foo() {
+ %X = invoke i1 @foo( )
+ to label %N unwind label %F ; <i1> [#uses=1]
+F: ; preds = %0
+ ret i1 false
+N: ; preds = %0
+ br i1 %X, label %A, label %B
+A: ; preds = %N
+ ret i1 true
+B: ; preds = %N
+ ret i1 true
}
+