1; RUN: opt < %s -loop-simplify -disable-output
2; PR1752
3target datalayout = "e-p:32:32:32-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:32:64-f32:32:32-f64:32:64-v64:64:64-v128:128:128-a0:0:64-s0:0:64-f80:32:32"
4target triple = "i686-pc-mingw32"
5
6define void @func() {
7bb_init:
8	br label %bb_main
9
10bb_main:
11        br label %invcont17.normaldest
12
13invcont17.normaldest917:		; No predecessors!
14	%tmp23 = invoke i32 @foo()
15			to label %invcont17.normaldest unwind label %invcont17.normaldest.normaldest
16
17invcont17.normaldest:		; preds = %invcont17.normaldest917, %bb_main
18	br label %bb_main
19
20invcont17.normaldest.normaldest:		; No predecessors!
21        %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
22                 catch i8* null
23        store i32 %tmp23, i32* undef
24	br label %bb_main
25}
26
27declare i32 @foo()
28
29declare i32 @__gxx_personality_v0(...)
30