1 ; RUN: llc < %s -mtriple=thumbv7-apple-ios -relocation-model=pic
2 ; <rdar://problem/10336715>
4 @Exn = external hidden unnamed_addr constant { ptr, ptr }
6 define hidden void @func(ptr %this, ptr %e) optsize align 2 personality ptr @__gxx_personality_sj0 {
7 %e.ld = load i32, ptr %e, align 4
8 %inv = invoke zeroext i1 @func2(ptr %this, i32 %e.ld) optsize
9 to label %ret unwind label %lpad
15 %lp = landingpad { ptr, i32 }
20 %exn = call ptr @__cxa_allocate_exception(i32 8) nounwind
21 call void @__cxa_throw(ptr %exn, ptr @Exn, ptr @dtor) noreturn
25 resume { ptr, i32 } %lp
28 declare hidden zeroext i1 @func2(ptr, i32) optsize align 2
30 declare ptr @__cxa_allocate_exception(i32)
32 declare i32 @__gxx_personality_sj0(...)
34 declare void @dtor(ptr) optsize
36 declare void @__cxa_throw(ptr, ptr, ptr)