Author: Paul T Robinson Date: 2024-09-04T09:19:41-04:00 New Revision: 028174aa2c3a9447aca3333e45b5f89e652b74d1
URL: https://github.com/llvm/llvm-project/commit/028174aa2c3a9447aca3333e45b5f89e652b74d1 DIFF: https://github.com/llvm/llvm-project/commit/028174aa2c3a9447aca3333e45b5f89e652b74d1.diff LOG: [DebugInfo] Make a test more robust (#106463) This was accidentally matching a metadata record that happend to have three elements, but wasn't the record of interest. Add CHECKs to make sure we've found the correct record. Added: Modified: clang/test/CodeGenCXX/debug-info-lambda-this.cpp Removed: ################################################################################ diff --git a/clang/test/CodeGenCXX/debug-info-lambda-this.cpp b/clang/test/CodeGenCXX/debug-info-lambda-this.cpp index 0a2f08ea4aa6d8..e5acab126d72ca 100644 --- a/clang/test/CodeGenCXX/debug-info-lambda-this.cpp +++ b/clang/test/CodeGenCXX/debug-info-lambda-this.cpp @@ -21,7 +21,8 @@ int main() { return 0; } -// CHECK: !{![[FOO_THIS:[0-9]+]], ![[FOO_AA:[0-9]+]], ![[FOO_OPERATOR:[0-9]+]]} +// CHECK: distinct !DICompositeType(tag: DW_TAG_class_type, name: "<lambda_1>", {{.*}}, elements: ![[ELEMENT_TAG:[0-9]+]] +// CHECK: ![[ELEMENT_TAG]] = !{![[FOO_THIS:[0-9]+]], ![[FOO_AA:[0-9]+]], ![[FOO_OPERATOR:[0-9]+]]} // CHECK-NEXT: ![[FOO_THIS]] = !DIDerivedType(tag: DW_TAG_member, name: "__this", scope: ![[#]], file: ![[#]], line: [[#]], baseType: ![[#]], size: [[#]]) // CHECK-NEXT: ![[FOO_AA]] = !DIDerivedType(tag: DW_TAG_member, name: "aa", scope: ![[#]], file: ![[#]], line: [[#]], baseType: ![[#]], size: [[#]], offset: [[#]]) // CHECK-NEXT: ![[FOO_OPERATOR]] = !DISubprogram(name: "operator()", scope: ![[#]], file: ![[#]], line: [[#]], type: ![[#]], scopeLine: [[#]], flags: DIFlagPublic | DIFlagPrototyped, spFlags: 0) _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits