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

Unified Diff: test/Transforms/NaCl/simplify-struct-reg-resume-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: Final. 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 side-by-side diff with in-line comments
Download patch
Index: test/Transforms/NaCl/simplify-struct-reg-resume-crash.ll
diff --git a/test/Transforms/NaCl/simplify-struct-reg-resume-crash.ll b/test/Transforms/NaCl/simplify-struct-reg-resume-crash.ll
new file mode 100644
index 0000000000000000000000000000000000000000..0f7e519a879392f7d7d5883794c9bd7989e189c5
--- /dev/null
+++ b/test/Transforms/NaCl/simplify-struct-reg-resume-crash.ll
@@ -0,0 +1,20 @@
+; RUN: not opt < %s -simplify-struct-reg-signatures -S
+
+%struct = type { i8*, void(%struct)* }
+
+declare i32 @__gxx_personality_v0(...)
+declare void @something_to_invoke()
+
+; landingpad with struct
+define void @landingpad_is_struct(%struct %str) {
+ invoke void @something_to_invoke()
+ to label %OK unwind label %Err
+
+OK:
+ ret void
+
+Err:
+ %exn = landingpad {i8*, i32} personality i32 (...)* @__gxx_personality_v0
+ cleanup
+ resume %struct %str
+}
« no previous file with comments | « test/Transforms/NaCl/simplify-struct-reg-pad-crash.ll ('k') | test/Transforms/NaCl/simplify-struct-reg-signatures.ll » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698