Move the personality function from LandingPadInst to Function
[oota-llvm.git] / test / Transforms / SCCP / 2004-11-16-DeadInvoke.ll
1 ; RUN: opt < %s -sccp -disable-output
2
3 declare i32 @foo()
4
5 define void @caller() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) {
6         br i1 true, label %T, label %F
7 F:              ; preds = %0
8         %X = invoke i32 @foo( )
9                         to label %T unwind label %LP            ; <i32> [#uses=0]
10 LP:
11         %val = landingpad { i8*, i32 }
12                  catch i8* null
13         br label %T
14 T:
15         ret void
16 }
17
18 declare i32 @__gxx_personality_v0(...)