Skip to content

Commit 756e077

Browse files
committed
[lldb][test] Adjust TestTypeList.py on Windows with exceptions
Since #148691 enabled exceptions when compiling the tests, this test has been failing. Much like was noted there, one of the variables disappeared from the debug info. Giving it a non-zero size and initialising it fixed that.
1 parent 5775851 commit 756e077

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lldb/test/API/python_api/type/main.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ template <unsigned Value> struct PointerInfo {
4444
};
4545

4646
template <unsigned Value, typename InfoType = PointerInfo<Value>>
47-
struct Pointer {};
47+
struct Pointer {
48+
// When compiling for Windows with exceptions enabled, this struct
49+
// must contain something that takes space and is initialised.
50+
// Otherwise it will not be present in the debug information.
51+
int pad = 0;
52+
};
4853

4954
enum EnumType {};
5055
enum class ScopedEnumType {};

0 commit comments

Comments
 (0)