1; RUN: llc < %s
2; PR10733
3declare void @_Znam()
4
5define void @_ZNK14gIndexOdometer15AfterExcisionOfERi() uwtable align 2 {
6_ZN6Gambit5ArrayIiEC2Ej.exit36:
7  br label %"9"
8
9"9":                                              ; preds = %"10", %_ZN6Gambit5ArrayIiEC2Ej.exit36
10  %indvar82 = phi i64 [ 0, %_ZN6Gambit5ArrayIiEC2Ej.exit36 ], [ %tmp85, %"10" ]
11  %tmp85 = add i64 %indvar82, 1
12  %tmp = trunc i64 %tmp85 to i32
13  invoke void @_ZNK14gIndexOdometer9NoIndicesEv()
14          to label %"10" unwind label %lpad27
15
16"10":                                             ; preds = %"9"
17  invoke void @_Znam()
18          to label %"9" unwind label %lpad27
19
20lpad27:                                           ; preds = %"10", %"9"
21  %0 = phi i32 [ undef, %"9" ], [ %tmp, %"10" ]
22  %1 = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0
23          cleanup
24  resume { i8*, i32 } zeroinitializer
25}
26
27declare void @_ZNK14gIndexOdometer9NoIndicesEv()
28
29declare i32 @__gxx_personality_v0(i32, i64, i8*, i8*)
30