aboutsummaryrefslogtreecommitdiff
path: root/clang/test/Profile/cxx-lambda.cpp
diff options
context:
space:
mode:
authorReid Kleckner <reid@kleckner.net>2015-04-01 20:22:13 +0000
committerReid Kleckner <reid@kleckner.net>2015-04-01 20:22:13 +0000
commitd2f6c726e77c2943f8723d0f9dd65f68b92ef0e0 (patch)
treedaf225448153dbc6d7cb5ebc9aadead62cdb55a7 /clang/test/Profile/cxx-lambda.cpp
parent084c384c6f644ecf907fd208cd51cf30d67a5940 (diff)
downloadllvm-d2f6c726e77c2943f8723d0f9dd65f68b92ef0e0.zip
llvm-d2f6c726e77c2943f8723d0f9dd65f68b92ef0e0.tar.gz
llvm-d2f6c726e77c2943f8723d0f9dd65f68b92ef0e0.tar.bz2
Re-land "MS ABI: lambda call operators are instance methods and should use thiscall"
Update the test cases to pass when lambda call operators use thiscall. Update the lambda-to-block conversion operator to use the default free function calling convention instead of the call operator's convention. This reverts commit r233082 and re-instates r233023. llvm-svn: 233835
Diffstat (limited to 'clang/test/Profile/cxx-lambda.cpp')
-rw-r--r--clang/test/Profile/cxx-lambda.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Profile/cxx-lambda.cpp b/clang/test/Profile/cxx-lambda.cpp
index 6790149..34e1857 100644
--- a/clang/test/Profile/cxx-lambda.cpp
+++ b/clang/test/Profile/cxx-lambda.cpp
@@ -19,8 +19,8 @@
void lambdas() {
int i = 1;
- // LMBGEN-LABEL: define internal{{( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
- // LMBUSE-LABEL: define internal{{( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
+ // LMBGEN-LABEL: define internal{{( x86_thiscallcc)?( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
+ // LMBUSE-LABEL: define internal{{( x86_thiscallcc)?( zeroext)?}} i1 @"_ZZ7lambdasvENK3$_0clEi"(
// LMBGEN: store {{.*}} @[[LFC]], i64 0, i64 0
auto f = [&i](int k) {
// LMBGEN: store {{.*}} @[[LFC]], i64 0, i64 1