Try to bypass clang crash

This commit is contained in:
Maxime Coste 2019-01-10 21:16:07 +11:00
parent 77b1216ace
commit eb8f785e91

View File

@ -5,9 +5,11 @@ namespace Kakoune
{
Regex::Regex(StringView re, RegexCompileFlags flags)
: m_impl{new CompiledRegex{compile_regex(re, flags)}},
: m_impl{new CompiledRegex{}},
m_str{re.str()}
{}
{
*m_impl = compile_regex(re, flags);
}
int Regex::named_capture_index(StringView name) const
{