summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarshall Clow <mclow.lists@gmail.com>2014-01-13 17:47:08 +0000
committerMarshall Clow <mclow.lists@gmail.com>2014-01-13 17:47:08 +0000
commit54f6bd59f57150234f5d99d564c57a5c628e7ed6 (patch)
tree45b1ce528ecf6293856b5df1417140175f4dac19
parent3a47244c94d3fb74a6b77fac8050b15898bc7780 (diff)
downloadbcm5719-llvm-54f6bd59f57150234f5d99d564c57a5c628e7ed6.tar.gz
bcm5719-llvm-54f6bd59f57150234f5d99d564c57a5c628e7ed6.zip
Fix a bug in regex_token_iterator's copy constructor. Caught by Bob Wilson.
llvm-svn: 199122
-rw-r--r--libcxx/include/regex2
1 files changed, 1 insertions, 1 deletions
diff --git a/libcxx/include/regex b/libcxx/include/regex
index f8569f950bc..b7416f81c24 100644
--- a/libcxx/include/regex
+++ b/libcxx/include/regex
@@ -6288,7 +6288,7 @@ regex_token_iterator<_BidirectionalIterator, _CharT, _Traits>::
__subs_(__x.__subs_)
{
if (__x.__result_ == &__x.__suffix_)
- __result_ == &__suffix_;
+ __result_ = &__suffix_;
else if ( __result_ != nullptr )
__establish_result ();
}
OpenPOWER on IntegriCloud