[libcxx] r337085 - Mark one more __wrap_iter operation as constexpr.
Marshall Clow via cfe-commits
cfe-commits at lists.llvm.org
Fri Jul 13 20:06:11 PDT 2018
Author: marshall
Date: Fri Jul 13 20:06:11 2018
New Revision: 337085
URL: http://llvm.org/viewvc/llvm-project?rev=337085&view=rev
Log:
Mark one more __wrap_iter operation as constexpr.
Modified:
libcxx/trunk/include/iterator
Modified: libcxx/trunk/include/iterator
URL: http://llvm.org/viewvc/llvm-project/libcxx/trunk/include/iterator?rev=337085&r1=337084&r2=337085&view=diff
==============================================================================
--- libcxx/trunk/include/iterator (original)
+++ libcxx/trunk/include/iterator Fri Jul 13 20:06:11 2018
@@ -1374,7 +1374,8 @@ public:
}
_LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG __wrap_iter operator++(int) _NOEXCEPT_DEBUG
{__wrap_iter __tmp(*this); ++(*this); return __tmp;}
- _LIBCPP_INLINE_VISIBILITY __wrap_iter& operator--() _NOEXCEPT_DEBUG
+
+ _LIBCPP_INLINE_VISIBILITY _LIBCPP_CONSTEXPR_IF_NODEBUG __wrap_iter& operator--() _NOEXCEPT_DEBUG
{
#if _LIBCPP_DEBUG_LEVEL >= 2
_LIBCPP_ASSERT(__get_const_db()->__decrementable(this),
More information about the cfe-commits
mailing list