Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8)

Side by Side Diff: test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll

Issue 992493002: Lower signatures exposing struct registers to byval struct pointers (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-llvm.git@master
Patch Set: landing pads Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698