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

Unified Diff: test/Transforms/NaCl/simplify-struct-reg-vararg-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: Varargs take 2 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-vararg-crash.ll
diff --git a/test/Transforms/NaCl/simplify-struct-reg-vararg-crash.ll b/test/Transforms/NaCl/simplify-struct-reg-vararg-crash.ll
new file mode 100644
index 0000000000000000000000000000000000000000..2b0e59fe8334eedf11a4a90c1fa86f808d843372
--- /dev/null
+++ b/test/Transforms/NaCl/simplify-struct-reg-vararg-crash.ll
@@ -0,0 +1,10 @@
+; RUN: not opt < %s -simplify-struct-reg-signatures -S
+
+%struct = type { i32, i32 }
+
+declare void @vararg_fct(...)
+
+define void @vararg_caller_with_agg(%struct %str) {
+ call void(...)* @vararg_fct(%struct %str)
+ ret void
+}

Powered by Google App Engine
This is Rietveld 408576698