forked from OSchip/llvm-project
Fix a bug in regex_token_iterator's copy constructor. Caught by Bob Wilson.
llvm-svn: 199122
This commit is contained in:
parent
3a47244c94
commit
54f6bd59f5
|
@ -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 ();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue