From eb8f785e91b6a0386c6202ddcfdff48f5026c865 Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Thu, 10 Jan 2019 21:16:07 +1100 Subject: [PATCH] Try to bypass clang crash --- src/regex.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/regex.cc b/src/regex.cc index 389b2376..b80da6d4 100644 --- a/src/regex.cc +++ b/src/regex.cc @@ -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 {