OLD | NEW |
---|---|
(Empty) | |
1 ; RUN: not opt < %s -simplify-struct-reg-signatures -S | |
2 | |
3 %struct = type { i8*, void(%struct)* } | |
4 | |
5 declare i32 @__gxx_personality_v0(...) | |
6 declare void @something_to_invoke() | |
7 | |
8 ; landingpad with struct | |
9 define void @landingpad_is_struct(%struct %str) { | |
10 invoke void @something_to_invoke() | |
11 to label %OK unwind label %Err | |
12 | |
13 OK: | |
14 ret void | |
15 | |
16 Err: | |
17 %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0 | |
18 cleanup | |
19 resume %struct %str | |
20 } | |
OLD | NEW |