Commit cec4d1b
committed
[lldb][test] TestConstStaticIntegralMember: relax assertion on number of global variables
In llvm#73626 we started attaching `DW_AT_const_value`s on a static data-member's declaration again. In DWARFv5, those static members are represented with a `DW_TAG_variable`. When LLDB builds the `ManualDWARFIndex`, it simply iterates over all DIEs in a CU and puts *any* `DW_TAG_variable` with a constant or location into the index. So when using the manual index, we can end up having 2 entries for a static data member in the index.
This caused a test failure on Linux (where DWARFv5 is the default and the tests use the manual index).
This patch loosens the restriction that we find exactly 1 variable.1 parent 1a041a3 commit cec4d1b
File tree
1 file changed
+1
-1
lines changed- lldb/test/API/lang/cpp/const_static_integral_member
1 file changed
+1
-1
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
121 | | - | |
| 121 | + | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
| |||
0 commit comments