diff options
| author | Maxime Coste <mawww@kakoune.org> | 2019-01-10 21:16:07 +1100 |
|---|---|---|
| committer | Maxime Coste <mawww@kakoune.org> | 2019-01-20 22:59:28 +1100 |
| commit | eb8f785e91b6a0386c6202ddcfdff48f5026c865 (patch) | |
| tree | 1c2f68122f4371d8ad41a46c932078bb7630ef16 /src | |
| parent | 77b1216aceb0a1642ee90fa68963817cc9949fa7 (diff) | |
Try to bypass clang crash
Diffstat (limited to 'src')
| -rw-r--r-- | src/regex.cc | 6 |
1 files 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 { |
