blob: 7558419a2ebdacab551c0223b44f98a71aa220d4 [file] [log] [blame]
Duncan Sandsad99ef82011-09-05 12:57:57 +00001; RUN: opt < %s -simplifycfg -S | FileCheck %s
2
3; CHECK-NOT: invoke
4; CHECK-NOT: landingpad
5
6declare void @bar()
7
8define i32 @foo() {
9entry:
10 invoke void @bar()
11 to label %return unwind label %lpad
12
13return:
14 ret i32 0
15
16lpad:
17 %lp = landingpad { i8*, i32 } personality i32 (i32, i64, i8*, i8*)* @__gxx_personality_v0
18 cleanup
19 resume { i8*, i32 } %lp
20}
21
22declare i32 @__gxx_personality_v0(i32, i64, i8*, i8*)