diff --git a/libcxx/include/regex b/libcxx/include/regex --- a/libcxx/include/regex +++ b/libcxx/include/regex @@ -5884,7 +5884,6 @@ { vector<__state> __states; __state __best_state; - ptrdiff_t __j = 0; ptrdiff_t __highest_j = 0; ptrdiff_t _Np = _VSTD::distance(__first, __last); __node* __st = __start_.get(); @@ -5945,7 +5944,6 @@ __states.pop_back(); break; case __state::__accept_and_consume: - __j += __s.__current_ - __current; __current = __s.__current_; break; case __state::__repeat: