blob: 940204649c74e2db7967e36df904b91e99ecd4b5 [file] [log] [blame]
Dan Gohman3c7d3082009-09-11 18:01:28 +00001; RUN: opt < %s -lowerinvoke -enable-correct-eh-support -disable-output
Dan Gohmanf17a25c2007-07-18 16:29:46 +00002
Tanya Lattner97928372008-03-19 07:28:33 +00003declare fastcc i32 @ll_listnext__listiterPtr()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner97928372008-03-19 07:28:33 +00005define fastcc i32 @WorkTask.fn() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006block0:
Tanya Lattner97928372008-03-19 07:28:33 +00007 %v2679 = invoke fastcc i32 @ll_listnext__listiterPtr( )
8 to label %block9 unwind label %block8_exception_handling ; <i32> [#uses=1]
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009block8_exception_handling: ; preds = %block0
Tanya Lattner97928372008-03-19 07:28:33 +000010 ret i32 0
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011block9: ; preds = %block0
Tanya Lattner97928372008-03-19 07:28:33 +000012 %i_2689 = phi i32 [ %v2679, %block0 ] ; <i32> [#uses=1]
13 ret i32 %i_2689
Dan Gohmanf17a25c2007-07-18 16:29:46 +000014}
Tanya Lattner97928372008-03-19 07:28:33 +000015