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