aboutsummaryrefslogtreecommitdiffstats
path: root/test/Transforms/ADCE/2003-09-10-UnwindInstFail.ll
blob: 6bbcfdb67ec58b1201597f50857d1a642e5e9f49 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
; 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(...)