Skip to content

Commit b2ce46c

Browse files
cachemeifyoucansys-ce-bb
authored andcommitted
[ClangModule] Fix decl-params-determinisim test after serialization change (#72572)
Fix decl-params-determinisim test after 48be81e packed some information in the clang module. The test is to make sure the decls are appearing in a strict ordering and it relies on check the correct field in the bitcode format. Add more explanation in the comments to help future updates when serialization format affects this test.
1 parent b3fbdf7 commit b2ce46c

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

clang/test/Modules/decl-params-determinisim.m

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,32 @@
1919
// RUN: diff %t1.pcm %t2.pcm
2020

2121
/// Spot check entries to make sure they are in current ordering.
22-
/// op13 encodes the anonymous decl number which should be in order.
22+
/// op6 encodes the anonymous decl number which should be in order.
2323

2424
/// NOTE: This test case is on determinism of TypeID for function declaration.
2525
/// Change related to TypeID (or PredefinedTypeIDs) will affect the result and
26-
/// will require update for this test case.
26+
/// will require update for this test case. Currently, TypeID is at op6 and the
27+
/// test checks the IDs are in strict ordering.
2728

2829
// CHECK: <TYPE_FUNCTION_PROTO
2930
// CHECK-NEXT: <DECL_PARM_VAR
30-
// CHECK-SAME: op11=4040
31+
// CHECK-SAME: op6=2
3132
// CHECK-NEXT: <DECL_PARM_VAR
32-
// CHECK-SAME: op11=4048
33+
// CHECK-SAME: op6=3
3334
// CHECK-NEXT: <DECL_PARM_VAR
34-
// CHECK-SAME: op11=4056
35+
// CHECK-SAME: op6=4
3536
// CHECK-NEXT: <DECL_PARM_VAR
36-
// CHECK-SAME: op11=4064
37+
// CHECK-SAME: op6=5
3738

3839
/// Decl records start at 43
3940
// CHECK: <DECL_RECORD
40-
// CHECK-SAME: op9=4368
41+
// CHECK-SAME: op6=43
4142
// CHECK-NEXT: <DECL_RECORD
42-
// CHECK-SAME: op9=4376
43+
// CHECK-SAME: op6=44
4344
// CHECK-NEXT: <DECL_RECORD
44-
// CHECK-SAME: op9=4384
45+
// CHECK-SAME: op6=45
4546
// CHECK-NEXT: <DECL_RECORD
46-
// CHECK-SAME: op9=4392
47+
// CHECK-SAME: op6=46
4748

4849
//--- headers/a.h
4950
void f(struct A0 *a0,

0 commit comments

Comments
 (0)