2009-09-12 02:01:28 +08:00
|
|
|
; RUN: opt < %s -sccp -disable-output
|
2004-11-17 00:39:20 +08:00
|
|
|
|
2008-03-19 12:14:49 +08:00
|
|
|
declare i32 @foo()
|
2004-11-17 00:39:20 +08:00
|
|
|
|
2008-03-19 12:14:49 +08:00
|
|
|
define void @caller() {
|
|
|
|
br i1 true, label %T, label %F
|
|
|
|
F: ; preds = %0
|
|
|
|
%X = invoke i32 @foo( )
|
2011-09-01 04:55:40 +08:00
|
|
|
to label %T unwind label %LP ; <i32> [#uses=0]
|
|
|
|
LP:
|
|
|
|
%val = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*)
|
|
|
|
catch i8* null
|
|
|
|
br label %T
|
|
|
|
T:
|
2004-11-17 00:39:20 +08:00
|
|
|
ret void
|
|
|
|
}
|
2008-03-19 12:14:49 +08:00
|
|
|
|
2011-09-01 04:55:40 +08:00
|
|
|
declare i32 @__gxx_personality_v0(...)
|