aboutsummaryrefslogtreecommitdiff
path: root/test/CodeGen/struct-passing.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-04-20 05:44:43 +0000
committerChris Lattner <sabre@nondot.org>2010-04-20 05:44:43 +0000
commitfb97cf24158aa7f1fd74374052f99733ef331bb9 (patch)
treeceae9ba184436a87065c9783c21e2548154cd7c3 /test/CodeGen/struct-passing.c
parent107ccd1f56836ae57c1a5a9c13c881b0293d1e98 (diff)
don't slap noalias attribute on stret result arguments.
This mirror's Dan's patch for llvm-gcc in r97989, and fixes the miscompilation in PR6525. There is some contention over whether this is the right thing to do, but it is the conservative answer and demonstrably fixes a miscompilation. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@101877 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/struct-passing.c')
-rw-r--r--test/CodeGen/struct-passing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/CodeGen/struct-passing.c b/test/CodeGen/struct-passing.c
index b351d8148e..409d14e22d 100644
--- a/test/CodeGen/struct-passing.c
+++ b/test/CodeGen/struct-passing.c
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 -triple i386-pc-linux-gnu -emit-llvm -o %t %s
// RUN: grep 'declare i32 @f0() readnone$' %t
// RUN: grep 'declare i32 @f1() readonly$' %t
-// RUN: grep 'declare void @f2(.* noalias sret)$' %t
-// RUN: grep 'declare void @f3(.* noalias sret)$' %t
+// RUN: grep 'declare void @f2(.* sret)$' %t
+// RUN: grep 'declare void @f3(.* sret)$' %t
// RUN: grep 'declare void @f4(.* byval)$' %t
// RUN: grep 'declare void @f5(.* byval)$' %t
// PR3835