Skip to content

Commit a1c0ba1

Browse files
committed
[lldb][test] TestDataFormatterLibcxxOptionalSimulator.py: change order of ifdefs
The current layout *does* have `removecv_t`. So change the ifdefs to reflect that.
1 parent 66713a0 commit a1c0ba1

File tree

1 file changed

+4
-4
lines changed
  • lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/optional

1 file changed

+4
-4
lines changed

lldb/test/API/functionalities/data-formatter/data-formatter-stl/libcxx-simulators/optional/main.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
#if REVISION == 0
55
// Pre-a3942b3 layout.
6-
#define HAS_REMOVE_CV
6+
#define NO_REMOVE_CV
77
#endif
88
// REVISION == 1: current layout
99

@@ -20,10 +20,10 @@ struct __optional_destruct_base {
2020
typedef _Tp value_type;
2121
union {
2222
char __null_state_;
23-
#ifdef HAS_REMOVE_CV
24-
remove_cv_t<value_type> __val_;
25-
#else // !HAS_REMOVE_CV
23+
#ifdef NO_REMOVE_CV
2624
value_type __val_;
25+
#else // !NO_REMOVE_CV
26+
remove_cv_t<value_type> __val_;
2727
#endif
2828
};
2929
bool __engaged_;

0 commit comments

Comments
 (0)