diff --git a/src/compiler/prepare_grammar/expand_repeats.cc b/src/compiler/prepare_grammar/expand_repeats.cc index c4a25634..9f663d67 100644 --- a/src/compiler/prepare_grammar/expand_repeats.cc +++ b/src/compiler/prepare_grammar/expand_repeats.cc @@ -36,10 +36,9 @@ class ExpandRepeats { }, [&](const rules::Seq &sequence) { - return rules::Seq{ - apply(*sequence.left), - apply(*sequence.right) - }; + auto left = apply(*sequence.left); + auto right = apply(*sequence.right); + return rules::Seq{left, right}; }, [&](const rules::Repeat &repeat) {