summaryrefslogtreecommitdiff
path: root/mi
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2017-08-13 10:20:53 -0700
committerOri Bernstein <ori@eigenstate.org>2017-08-13 10:20:53 -0700
commit548ce5467e98c95e545be3fd021da014798a942d (patch)
tree440722746ca17a46df5e2d75fefae1cb5aaa9c9c /mi
parentfe0c54bda8e70766480784336fc881567620410e (diff)
downloadmc-548ce5467e98c95e545be3fd021da014798a942d.tar.gz
Give a better error message about incomparable types.
Diffstat (limited to 'mi')
-rw-r--r--mi/flatten.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mi/flatten.c b/mi/flatten.c
index 77216c7..228f21b 100644
--- a/mi/flatten.c
+++ b/mi/flatten.c
@@ -393,7 +393,7 @@ compare(Flattenctx *s, Node *n, int fields)
} else if (fields) {
r = comparecomplex(s, n, exprop(n));
} else {
- fatal(n, "unsupported comparison on values");
+ fatal(n, "unsupported comparison on type %s", tystr(ty));
}
r->expr.type = mktype(n->loc, Tybool);
return r;