Land the long talked about "type system rewrite" patch. This
[llvm/stm8.git] / test / Transforms / LowerInvoke / 2005-08-03-InvokeWithPHIUse.ll
blob940204649c74e2db7967e36df904b91e99ecd4b5
1 ; RUN: opt < %s -lowerinvoke -enable-correct-eh-support -disable-output
3 declare fastcc i32 @ll_listnext__listiterPtr()
5 define fastcc i32 @WorkTask.fn() {
6 block0:
7         %v2679 = invoke fastcc i32 @ll_listnext__listiterPtr( )
8                         to label %block9 unwind label %block8_exception_handling        ; <i32> [#uses=1]
9 block8_exception_handling:              ; preds = %block0
10         ret i32 0
11 block9:         ; preds = %block0
12         %i_2689 = phi i32 [ %v2679, %block0 ]           ; <i32> [#uses=1]
13         ret i32 %i_2689