blob: 60b4544bf44b04d4b01a70620ed8c78213b59ebc [file] [log] [blame]
Dan Gohman1b4c27772009-09-08 16:50:01 +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