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