blob: 10c878537289fcbbb606c9f5f0767776d8fdae34 [file] [log] [blame]
Tanya Lattnere6d5d392008-03-19 07:28:33 +00001; RUN: llvm-as < %s | opt -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