Fix misguided error message in debug mode. No functional change. Fixes PR#34966
authorMarshall Clow <mclow.lists@gmail.com>
Mon, 23 Oct 2017 16:46:44 +0000 (16:46 +0000)
committerMarshall Clow <mclow.lists@gmail.com>
Mon, 23 Oct 2017 16:46:44 +0000 (16:46 +0000)
llvm-svn: 316343

libcxx/include/list

index 9561a5fd67f67c0aa775c814bedd040ec58bcd5b..857d8a7a08def8556516747d7036b02a8b0f2603 100644 (file)
@@ -481,7 +481,7 @@ public:
     {
 #if _LIBCPP_DEBUG_LEVEL >= 2
         _LIBCPP_ASSERT(__get_const_db()->__dereferenceable(this),
-                       "Attempted to dereference a non-dereferenceable list::iterator");
+                       "Attempted to dereference a non-dereferenceable list::const_iterator");
 #endif
         return pointer_traits<pointer>::pointer_to(__ptr_->__as_node()->__value_);
     }