summaryrefslogtreecommitdiffstats
path: root/clang/test/CodeGenCXX/regcall.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2019-06-05 21:12:14 +0000
committerTim Northover <tnorthover@apple.com>2019-06-05 21:12:14 +0000
commitc46827c7eda30cd0bc3e70d08670c8dc39fe6166 (patch)
treedc817e1eb1cc273a480022199190880af8b5d7cf /clang/test/CodeGenCXX/regcall.cpp
parent9423f5ef56d23c099987ceec2a140fe9efa47934 (diff)
downloadbcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.tar.gz
bcm5719-llvm-c46827c7eda30cd0bc3e70d08670c8dc39fe6166.zip
LLVM IR: Generate new-style byval-with-Type from Clang
LLVM IR recently added a Type parameter to the byval Attribute, so that when pointers become opaque and no longer have an element type the information will still be present in IR. For now the Type parameter is optional (which is why Clang didn't need this change at the time), but it will become mandatory soon. llvm-svn: 362652
Diffstat (limited to 'clang/test/CodeGenCXX/regcall.cpp')
-rw-r--r--clang/test/CodeGenCXX/regcall.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/CodeGenCXX/regcall.cpp b/clang/test/CodeGenCXX/regcall.cpp
index fbc1dbf7d7c..315c5bc0e66 100644
--- a/clang/test/CodeGenCXX/regcall.cpp
+++ b/clang/test/CodeGenCXX/regcall.cpp
@@ -99,7 +99,7 @@ void force_gen() {
long double _Complex __regcall foo(long double _Complex f) {
return f;
}
-// CHECK-LIN64-DAG: define x86_regcallcc void @_Z15__regcall3__fooCe({ x86_fp80, x86_fp80 }* noalias sret %agg.result, { x86_fp80, x86_fp80 }* byval align 16 %f)
-// CHECK-LIN32-DAG: define x86_regcallcc void @_Z15__regcall3__fooCe({ x86_fp80, x86_fp80 }* inreg noalias sret %agg.result, { x86_fp80, x86_fp80 }* byval align 4 %f)
+// CHECK-LIN64-DAG: define x86_regcallcc void @_Z15__regcall3__fooCe({ x86_fp80, x86_fp80 }* noalias sret %agg.result, { x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 16 %f)
+// CHECK-LIN32-DAG: define x86_regcallcc void @_Z15__regcall3__fooCe({ x86_fp80, x86_fp80 }* inreg noalias sret %agg.result, { x86_fp80, x86_fp80 }* byval({ x86_fp80, x86_fp80 }) align 4 %f)
// CHECK-WIN64-DAG: define dso_local x86_regcallcc { double, double } @"?foo@@YwU?$_Complex@O@__clang@@U12@@Z"(double %f.0, double %f.1)
// CHECK-WIN32-DAG: define dso_local x86_regcallcc { double, double } @"?foo@@YwU?$_Complex@O@__clang@@U12@@Z"(double %f.0, double %f.1)
OpenPOWER on IntegriCloud