summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2008-01-27 18:12:58 +0000
committerDuncan Sands <baldrick@free.fr>2008-01-27 18:12:58 +0000
commitd82375c1c43db7f823dd4660d3495e76566699e3 (patch)
tree9ec329e29706c0b886f14a16dec1e225e7decd53 /test
parent3bd39d4ca89804e97c93b039f6c2933f514c165c (diff)
downloadllvm-d82375c1c43db7f823dd4660d3495e76566699e3.tar.gz
llvm-d82375c1c43db7f823dd4660d3495e76566699e3.tar.bz2
llvm-d82375c1c43db7f823dd4660d3495e76566699e3.tar.xz
Revert r46393: readonly/readnone functions are no
longer allowed to write through byval arguments. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46416 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test')
-rw-r--r--test/Transforms/Inline/byval2.ll6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/Transforms/Inline/byval2.ll b/test/Transforms/Inline/byval2.ll
index ab8c45d376..e949d01856 100644
--- a/test/Transforms/Inline/byval2.ll
+++ b/test/Transforms/Inline/byval2.ll
@@ -1,7 +1,7 @@
-; RUN: llvm-as < %s | opt -inline | llvm-dis | grep {llvm.memcpy}
+; RUN: llvm-as < %s | opt -inline | llvm-dis | not grep {llvm.memcpy}
-; Inlining a byval struct should cause an explicit copy
-; into an alloca even if the function is readonly
+; Inlining a byval struct should NOT cause an explicit copy
+; into an alloca if the function is readonly
%struct.ss = type { i32, i64 }
@.str = internal constant [10 x i8] c"%d, %lld\0A\00" ; <[10 x i8]*> [#uses=1]