diff options
| author | Duncan Sands <baldrick@free.fr> | 2008-09-05 21:34:32 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2008-09-05 21:34:32 +0000 |
| commit | 7db9a7874b1dec4f67b9024684eb79bb0c447a3c (patch) | |
| tree | 387a552410c94ffcbb1ae04ba92be1072a8cfb83 | |
| parent | db06a9923995d17cff07d1a563f1be4110aef128 (diff) | |
| download | bcm5719-llvm-7db9a7874b1dec4f67b9024684eb79bb0c447a3c.tar.gz bcm5719-llvm-7db9a7874b1dec4f67b9024684eb79bb0c447a3c.zip | |
Prevent our own passes from promoting this to
readonly.
llvm-svn: 55858
| -rw-r--r-- | llvm/test/FrontendC/2008-01-25-ByValReadNone.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/FrontendC/2008-01-25-ByValReadNone.c b/llvm/test/FrontendC/2008-01-25-ByValReadNone.c index 8ec60525af8..42e9c362629 100644 --- a/llvm/test/FrontendC/2008-01-25-ByValReadNone.c +++ b/llvm/test/FrontendC/2008-01-25-ByValReadNone.c @@ -10,6 +10,6 @@ // temporary when inlining such a function, which is costly for // the common case in which the byval argument is not written. struct S { int A[1000]; }; -int __attribute__ ((const)) f(struct S x) { return x.A[0]; } +int __attribute__ ((const)) f(struct S x) { x.A[1] = 0; return x.A[0]; } int g(struct S x) __attribute__ ((pure)); int h(struct S x) { return g(x); } |

