summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--grep-regex/src/multi.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/grep-regex/src/multi.rs b/grep-regex/src/multi.rs
index 501e5aca..6e43e975 100644
--- a/grep-regex/src/multi.rs
+++ b/grep-regex/src/multi.rs
@@ -109,6 +109,7 @@ pub fn alternation_literals(expr: &Hir) -> Option<Vec<Vec<u8>>> {
for alt in alts {
let mut lit = vec![];
match *alt.kind() {
+ HirKind::Empty => {}
HirKind::Literal(ref x) => extendlit(x, &mut lit),
HirKind::Concat(ref exprs) => {
for e in exprs {