From dea68bafe81c40adf29e45630cfeceb97b91a630 Mon Sep 17 00:00:00 2001 From: lemon Date: Tue, 30 Aug 2022 10:41:16 +0200 Subject: Makefile and such --- bootstrap/cgen.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'bootstrap/cgen.c') diff --git a/bootstrap/cgen.c b/bootstrap/cgen.c index 0bd7851..7db84ea 100644 --- a/bootstrap/cgen.c +++ b/bootstrap/cgen.c @@ -815,6 +815,9 @@ defctype(const struct type *ty, void *_) { } break; case TYslice: + if (ty->konst) { + ty = unconstify(ty); + } if (ty->child->konst) { const struct type *ty2 = unconstifychild(ty); defctype(ty2, NULL); -- cgit v1.2.3