diff options
author | Mura Li <mural@ctli.io> | 2021-07-05 11:40:44 +0000 |
---|---|---|
committer | Mura Li <mural@ctli.io> | 2021-07-05 11:40:44 +0000 |
commit | e3682d0bb7437dc3cbb6a6fcf8d82806d98c73da (patch) | |
tree | 717ddc5282f252026443786a9deff910727b738a /mi | |
parent | e6811668a36f0bfaa6abe113bc25ed99473f8973 (diff) | |
download | mc-e3682d0bb7437dc3cbb6a6fcf8d82806d98c73da.tar.gz |
mi/match: fix internal compiler error
There could be more than one frontiers for each match arm.
Signed-off-by: Mura Li <mural@ctli.io>
Diffstat (limited to 'mi')
-rw-r--r-- | mi/match.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -980,7 +980,7 @@ gendtree(Node *m, Node *val, Node **lbl, size_t nlbl) for (i = 0; i < nfrontier; i++) if (frontier[i]->final->refcnt == 0) - fatal(pat[i], "pattern matched by earlier case"); + fatal(pat[frontier[i]->i], "pattern matched by earlier case"); if (debugopt['M'] || getenv("M")) { dbgloc = strdup(getenv("M")); |