summaryrefslogtreecommitdiffstats
path: root/libcxx/include/iterator
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2018-07-14 03:06:11 +0000
committerMarshall Clow <mclow.lists@gmail.com>2018-07-14 03:06:11 +0000
commit4ce0a916f0120aa14598148b3e0badfc55905718 (patch)
treedef87cab5cec94eb486fb25f2ce0ddcd6c121d02 /libcxx/include/iterator
parent17172c6b80f95a718b90942840eb042874a037f0 (diff)
downloadbcm5719-llvm-4ce0a916f0120aa14598148b3e0badfc55905718.tar.gz
bcm5719-llvm-4ce0a916f0120aa14598148b3e0badfc55905718.zip
Mark one more __wrap_iter operation as constexpr.
llvm-svn: 337085
Diffstat (limited to 'libcxx/include/iterator')
-rw-r--r--libcxx/include/iterator3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcxx/include/iterator b/libcxx/include/iterator
index 66592b88719..9415e0b8396 100644
--- a/libcxx/include/iterator
+++ b/libcxx/include/iterator
@@ -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),
OpenPOWER on IntegriCloud