Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-23 21:37:05 +0400
committerHoward Hinnant <hhinnant@apple.com>2013-08-23 21:37:05 +0400
commitfc88dbd2988365dfa869d7387e1c1a1ae1e5d33d (patch)
treeae37b542af4ad74ab85bfa5650101b0e2ece2e1a /libcxx/include/iterator
parent9217aa3b1532b76e50c6e28f4baec28557f5f978 (diff)
Debug mode for string. This commit also marks the first time libc++ debug-mode has found a bug (found one in regex). Had to play with extern templates a bit to get this to work since string is heavily used within libc++.dylib.
llvm-svn: 189114
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 87d6d1d21446..8e92e6fef1e5 100644
--- a/libcxx/include/iterator
+++ b/libcxx/include/iterator
@@ -1197,12 +1197,13 @@ public:
_LIBCPP_INLINE_VISIBILITY iterator_type base() const _NOEXCEPT {return __i;}
private:
- _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
#if _LIBCPP_DEBUG_LEVEL >= 2
_LIBCPP_INLINE_VISIBILITY __wrap_iter(const void* __p, iterator_type __x) : __i(__x)
{
__get_db()->__insert_ic(this, __p);
}
+#else
+ _LIBCPP_INLINE_VISIBILITY __wrap_iter(iterator_type __x) _NOEXCEPT : __i(__x) {}
#endif
template <class _Up> friend class __wrap_iter;