summaryrefslogtreecommitdiffstats
path: root/llvm/test/Bitcode/compatibility-3.6.ll
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-05-30 18:48:23 +0000
committerTim Northover <tnorthover@apple.com>2019-05-30 18:48:23 +0000
commitb7141207a483d39b99c2b4da4eb3bb591eca9e1a (patch)
tree17be3c9e9f0ba7f9493e2279d5df0e029533d910 /llvm/test/Bitcode/compatibility-3.6.ll
parent7fecdf36cc5b41dc5ad85d58c6e3b97b4fce6d00 (diff)
downloadbcm5719-llvm-b7141207a483d39b99c2b4da4eb3bb591eca9e1a.tar.gz
bcm5719-llvm-b7141207a483d39b99c2b4da4eb3bb591eca9e1a.zip
Reapply: IR: add optional type to 'byval' function parameters
When we switch to opaque pointer types we will need some way to describe how many bytes a 'byval' parameter should occupy on the stack. This adds a (for now) optional extra type parameter. If present, the type must match the pointee type of the argument. The original commit did not remap byval types when linking modules, which broke LTO. This version fixes that. Note to front-end maintainers: if this causes test failures, it's probably because the "byval" attribute is printed after attributes without any parameter after this change. llvm-svn: 362128
Diffstat (limited to 'llvm/test/Bitcode/compatibility-3.6.ll')
-rw-r--r--llvm/test/Bitcode/compatibility-3.6.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Bitcode/compatibility-3.6.ll b/llvm/test/Bitcode/compatibility-3.6.ll
index e9313dfba87..322c95b02d1 100644
--- a/llvm/test/Bitcode/compatibility-3.6.ll
+++ b/llvm/test/Bitcode/compatibility-3.6.ll
@@ -404,7 +404,7 @@ declare void @f.param.signext(i8 signext)
declare void @f.param.inreg(i8 inreg)
; CHECK: declare void @f.param.inreg(i8 inreg)
declare void @f.param.byval({ i8, i8 }* byval)
-; CHECK: declare void @f.param.byval({ i8, i8 }* byval)
+; CHECK: declare void @f.param.byval({ i8, i8 }* byval({ i8, i8 }))
declare void @f.param.inalloca(i8* inalloca)
; CHECK: declare void @f.param.inalloca(i8* inalloca)
declare void @f.param.sret(i8* sret)
OpenPOWER on IntegriCloud