summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2011-03-30 23:44:13 +0000
committerEvan Cheng <evan.cheng@apple.com>2011-03-30 23:44:13 +0000
commitee2e0e347e253d103ebbb0c59fcb48ca2d80b7ef (patch)
tree0382ec160f8cd1103546221f2dd5b50424477a95 /test
parent40829ed6f5e449fa33a9cd7022ce6c3941dace3d (diff)
downloadllvm-ee2e0e347e253d103ebbb0c59fcb48ca2d80b7ef.tar.gz
llvm-ee2e0e347e253d103ebbb0c59fcb48ca2d80b7ef.tar.bz2
llvm-ee2e0e347e253d103ebbb0c59fcb48ca2d80b7ef.tar.xz
Don't try to create zero-sized stack objects.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@128586 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/CodeGen/X86/2011-03-30-CreateFixedObjCrash.ll10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/CodeGen/X86/2011-03-30-CreateFixedObjCrash.ll b/test/CodeGen/X86/2011-03-30-CreateFixedObjCrash.ll
new file mode 100644
index 0000000000..38a9b3d4f5
--- /dev/null
+++ b/test/CodeGen/X86/2011-03-30-CreateFixedObjCrash.ll
@@ -0,0 +1,10 @@
+; RUN: llc < %s -march=x86
+
+; rdar://7983260
+
+%struct.T0 = type {}
+
+define void @fn4(%struct.T0* byval %arg0) nounwind ssp {
+entry:
+ ret void
+}