From a037eace91a350b2a45d0b901f547903df3d3cb3 Mon Sep 17 00:00:00 2001 From: Erich Keane Date: Tue, 26 Apr 2022 05:50:33 -0700 Subject: [PATCH] Fix test from 5ff992 to work with win 32 bit, fix a typo. See the discussion on D123319. Default calling convention on Windows32 bit is to have 'this-call' for member functions, so add a wildcard to take care of that. Also, one of the FileCheck 'match' flags was incorrect, so fix that too. --- clang/test/CodeGenCXX/no_auto_return_lambda.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/clang/test/CodeGenCXX/no_auto_return_lambda.cpp b/clang/test/CodeGenCXX/no_auto_return_lambda.cpp index 76a98263f766..61e76a0656e6 100644 --- a/clang/test/CodeGenCXX/no_auto_return_lambda.cpp +++ b/clang/test/CodeGenCXX/no_auto_return_lambda.cpp @@ -21,5 +21,5 @@ __attribute__((used)) int g() { // operator() of the local lambda should have the same return type as g() // // CHECK: distinct !DISubprogram(name: "operator()",{{.*}}, type: ![[FUN_TYPE_LAMBDA:[0-9]+]],{{.*}} -// CHECK: ![[FUN_TYPE_LAMBDA]] = !DISubroutineType(types: ![[TYPE_NODE_LAMBDA:[0-9]+]]) -// CHECK: ![[TYPE_NODE_LAMBDA]] = !{![[INT_TYPE:[0-9]+]], {{.*}} +// CHECK: ![[FUN_TYPE_LAMBDA]] = !DISubroutineType({{.*}}types: ![[TYPE_NODE_LAMBDA:[0-9]+]]) +// CHECK: ![[TYPE_NODE_LAMBDA]] = !{![[INT_TYPE]], {{.*}}