[clang] a037eac - Fix test from 5ff992 to work with win 32 bit, fix a typo.

Erich Keane via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 26 06:37:24 PDT 2022


Author: Erich Keane
Date: 2022-04-26T06:37:19-07:00
New Revision: a037eace91a350b2a45d0b901f547903df3d3cb3

URL: https://github.com/llvm/llvm-project/commit/a037eace91a350b2a45d0b901f547903df3d3cb3
DIFF: https://github.com/llvm/llvm-project/commit/a037eace91a350b2a45d0b901f547903df3d3cb3.diff

LOG: 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.

Added: 
    

Modified: 
    clang/test/CodeGenCXX/no_auto_return_lambda.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/CodeGenCXX/no_auto_return_lambda.cpp b/clang/test/CodeGenCXX/no_auto_return_lambda.cpp
index 76a98263f7668..61e76a0656e67 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]], {{.*}}


        


More information about the cfe-commits mailing list