; RUN: llc < %s -enable-correct-eh-support

define i32 @test() {
        unwind
}

define i32 @main() {
        %X = invoke i32 @test( )
                        to label %cont unwind label %EH         ; <i32> [#uses=0]

cont:           ; preds = %0
        ret i32 1

EH:             ; preds = %0
  %lpad = landingpad { i8*, i32 } personality i32 (...)* @__gxx_personality_v0
            cleanup
  ret i32 0
}

declare i32 @__gxx_personality_v0(...)

; RUN: llc < %s -enable-correct-eh-support

define i32 @test() {
        unwind
}

define i32 @main() {
        %X = invoke i32 @test( )
                        to label %cont unwind label %EH         ; <i32> [#uses=0]

cont:           ; preds = %0
        ret i32 1

EH:             ; preds = %0
        ret i32 0
}


Revert r138606 until LowerInvoke has been converted to the new EH scheme.
Revert r138606 until LowerInvoke has been converted to the new EH scheme.


git-svn-id: 0ff597fd157e6f4fc38580e8d64ab130330d2411@138656 91177308-0d34-0410-b5e6-96231b3b80d8
