[llvm-commits] [llvm] r47808 - /llvm/trunk/test/Feature/unwindto.ll
Nick Lewycky
nicholas at mxc.ca
Sat Mar 1 19:34:55 PST 2008
Author: nicholas
Date: Sat Mar 1 21:34:55 2008
New Revision: 47808
URL: http://llvm.org/viewvc/llvm-project?rev=47808&view=rev
Log:
Oops, can't unwind to the entry block (entry block may have no preds).
Modified:
llvm/trunk/test/Feature/unwindto.ll
Modified: llvm/trunk/test/Feature/unwindto.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Feature/unwindto.ll?rev=47808&r1=47807&r2=47808&view=diff
==============================================================================
--- llvm/trunk/test/Feature/unwindto.ll (original)
+++ llvm/trunk/test/Feature/unwindto.ll Sat Mar 1 21:34:55 2008
@@ -13,6 +13,8 @@
}
define i1 @test2(i8 %i, i8 %j) {
+entry:
+ br label %0
unwind_to %1
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
@@ -22,6 +24,8 @@
}
define i1 @test3(i8 %i, i8 %j) {
+entry:
+ br label %0
unwind_to %1
%tmp = sub i8 %i, %j ; <i8> [#uses=1]
%b = icmp eq i8 %tmp, 0 ; <i1> [#uses=1]
@@ -43,6 +47,8 @@
}
define void @test6() {
+entry:
+ br label %unwind
unwind: unwind_to %unwind
unwind
}
More information about the llvm-commits
mailing list