OLD | NEW |
---|---|
(Empty) | |
1 ; RUN: not opt < %s -simplify-struct-reg-signatures -S | |
2 ; REQUIRES: asserts | |
JF
2015/03/20 16:41:32
Do you actually need this? It'll still crash even
Mircea Trofin
2015/03/20 18:31:32
Done.
| |
3 | |
4 %struct = type { i32, i32 } | |
5 | |
6 declare i32 @__hypothetical_personality_1(%struct) | |
7 declare %struct @__hypothetical_personality_2(i32) | |
Mircea Trofin
2015/03/20 00:07:24
I'll remove this second personality, actually. I c
| |
8 | |
9 declare void @something_to_invoke() | |
10 | |
11 ; landingpad with struct | |
12 define void @landingpad_is_struct() { | |
13 invoke void @something_to_invoke() | |
14 to label %OK unwind label %Err | |
15 | |
16 OK: | |
17 ret void | |
18 | |
19 Err: | |
20 %exn = landingpad i32 personality i32(%struct)* @__hypothetical_personality_1 | |
21 cleanup | |
22 resume i32 %exn | |
23 } | |
OLD | NEW |