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