blob: 1057ad7057cc05491609202a34a53c62d3f05424 [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 void @ll_listnext__listiterPtr()
Dan Gohmanf17a25c2007-07-18 16:29:46 +00004
Tanya Lattner97928372008-03-19 07:28:33 +00005define void @WorkTask.fn() {
Dan Gohmanf17a25c2007-07-18 16:29:46 +00006block0:
Tanya Lattner97928372008-03-19 07:28:33 +00007 invoke void @ll_listnext__listiterPtr( )
Dan Gohmanf17a25c2007-07-18 16:29:46 +00008 to label %block9 unwind label %block8_exception_handling
Dan Gohmanf17a25c2007-07-18 16:29:46 +00009block8_exception_handling: ; preds = %block0
10 ret void
Dan Gohmanf17a25c2007-07-18 16:29:46 +000011block9: ; preds = %block0
Tanya Lattner97928372008-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]
Dan Gohmanf17a25c2007-07-18 16:29:46 +000015 ret void
16}
Tanya Lattner97928372008-03-19 07:28:33 +000017