summaryrefslogtreecommitdiffstats
path: root/libcxx/include/regex
diff options
context:
space:
mode:
authorHoward Hinnant <hhinnant@apple.com>2013-08-23 17:37:05 +0000
committerHoward Hinnant <hhinnant@apple.com>2013-08-23 17:37:05 +0000
commitfc88dbd2988365dfa869d7387e1c1a1ae1e5d33d (patch)
treeae37b542af4ad74ab85bfa5650101b0e2ece2e1a /libcxx/include/regex
parent9217aa3b1532b76e50c6e28f4baec28557f5f978 (diff)
downloadbcm5719-llvm-fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d.tar.gz
bcm5719-llvm-fc88dbd2988365dfa869d7387e1c1a1ae1e5d33d.zip
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/regex')
-rw-r--r--libcxx/include/regex4
1 files changed, 2 insertions, 2 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex
index 776bc653ce4..cc06e0b38eb 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -3785,7 +3785,7 @@ basic_regex<_CharT, _Traits>::__parse_expression_term(_ForwardIterator __first,
}
__ml->__add_range(_VSTD::move(__start_range), _VSTD::move(__end_range));
}
- else
+ else if (!__start_range.empty())
{
if (__start_range.size() == 1)
__ml->__add_char(__start_range[0]);
@@ -3793,7 +3793,7 @@ basic_regex<_CharT, _Traits>::__parse_expression_term(_ForwardIterator __first,
__ml->__add_digraph(__start_range[0], __start_range[1]);
}
}
- else
+ else if (!__start_range.empty())
{
if (__start_range.size() == 1)
__ml->__add_char(__start_range[0]);
OpenPOWER on IntegriCloud