summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorMura Li <mural@ctli.io>2021-07-05 11:40:44 +0000
committerMura Li <mural@ctli.io>2021-07-05 11:40:44 +0000
commite3682d0bb7437dc3cbb6a6fcf8d82806d98c73da (patch)
tree717ddc5282f252026443786a9deff910727b738a /mi
parente6811668a36f0bfaa6abe113bc25ed99473f8973 (diff)
downloadmc-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/match.c b/mi/match.c
index f3e3689..afd3e46 100644
--- a/mi/match.c
+++ b/mi/match.c
@@ -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"));