teemperor created this revision.
teemperor added reviewers: shafik, zturner, labath.
Herald added subscribers: lldb-commits, jdoerfert, christof.
Herald added a project: LLDB.

The compilation of the TestDataFormatterLibcxxListLoop.py currently fails with 
this error:

  
functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp:19:24:
 error: no member named '__value_' in 'std::__1::__list_node_base<int, void *>'
      assert(third_elem->__value_ == 3);
             ~~~~~~~~~~  ^

This patch makes the test compile with the current libc++.


Repository:
  rLLDB LLDB

https://reviews.llvm.org/D58273

Files:
  
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp


Index: 
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
===================================================================
--- 
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
+++ 
lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
@@ -16,9 +16,9 @@
 
     printf("// Set break point at this line.");
     auto *third_elem = numbers_list->__end_.__next_->__next_->__next_;
-    assert(third_elem->__value_ == 3);
+    assert(third_elem->__as_node()->__value_ == 3);
     auto *fifth_elem = third_elem->__next_->__next_;
-    assert(fifth_elem->__value_ == 5);
+    assert(fifth_elem->__as_node()->__value_ == 5);
     fifth_elem->__next_ = third_elem;
 #endif
 


Index: lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
===================================================================
--- lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
+++ lldb/packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/list/loop/main.cpp
@@ -16,9 +16,9 @@
 
     printf("// Set break point at this line.");
     auto *third_elem = numbers_list->__end_.__next_->__next_->__next_;
-    assert(third_elem->__value_ == 3);
+    assert(third_elem->__as_node()->__value_ == 3);
     auto *fifth_elem = third_elem->__next_->__next_;
-    assert(fifth_elem->__value_ == 5);
+    assert(fifth_elem->__as_node()->__value_ == 5);
     fifth_elem->__next_ = third_elem;
 #endif
 
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to