blob: 1057ad7057cc05491609202a34a53c62d3f05424 [file] [log] [blame]
Dan Gohmanf2f6ce62009-09-11 18:01:28 +00001; RUN: opt < %s -lowerinvoke -enable-correct-eh-support -disable-output
Chris Lattner52261102005-08-03 18:33:48 +00002
Tanya Lattnere6d5d392008-03-19 07:28:33 +00003declare void @ll_listnext__listiterPtr()
Chris Lattner52261102005-08-03 18:33:48 +00004
Tanya Lattnere6d5d392008-03-19 07:28:33 +00005define void @WorkTask.fn() {
Chris Lattner52261102005-08-03 18:33:48 +00006block0:
Tanya Lattnere6d5d392008-03-19 07:28:33 +00007 invoke void @ll_listnext__listiterPtr( )
Chris Lattner52261102005-08-03 18:33:48 +00008 to label %block9 unwind label %block8_exception_handling
Chris Lattner52261102005-08-03 18:33:48 +00009block8_exception_handling: ; preds = %block0
10 ret void
Chris Lattner52261102005-08-03 18:33:48 +000011block9: ; preds = %block0
Tanya Lattnere6d5d392008-03-19 07:28:33 +000012 %w_2690 = phi { i32, i32 }* [ null, %block0 ] ; <{ i32, i32 }*> [#uses=1]
13 %tmp.129 = getelementptr { i32, i32 }* %w_2690, i32 0, i32 1 ; <i32*> [#uses=1]
14 %v2769 = load i32* %tmp.129 ; <i32> [#uses=0]
Chris Lattner52261102005-08-03 18:33:48 +000015 ret void
16}
Tanya Lattnere6d5d392008-03-19 07:28:33 +000017