view test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll @ 52:c22698ecb2a9

modified CreateIdentifierInfo and create new function which was named 'CreateUniqueIdentifierInfo'.
author Kaito Tokumori <e105711@ie.u-ryukyu.ac.jp>
date Wed, 15 Jan 2014 21:01:33 +0900
parents 95c75e76d11b
children afa8332a0e37
line wrap: on
line source

; RUN: opt < %s -adce -disable-output

define void @test() {
        br i1 false, label %then, label %endif

then:           ; preds = %0
        invoke void null( i8* null )
                        to label %invoke_cont unwind label %invoke_catch

invoke_catch:           ; preds = %then
        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
                 cleanup
        resume { i8*, i32 } %exn

invoke_cont:            ; preds = %then
        ret void

endif:          ; preds = %0
        ret void
}

declare i32 @__gxx_personality_v0(...)