From 6dc5b907fc17fc7f705781dbe16c6b79ed3a1f9a Mon Sep 17 00:00:00 2001 From: Sofi Aberegg <31450814+sofiaaberegg@users.noreply.github.com> Date: Tue, 13 Aug 2024 14:37:48 -0700 Subject: Add missing parser error check in makeArrayInitElem (#6835) Fixes #6833 --- src/parser/parsers.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/parser/parsers.h b/src/parser/parsers.h index ef46a395a..23286bb28 100644 --- a/src/parser/parsers.h +++ b/src/parser/parsers.h @@ -2329,6 +2329,7 @@ Result<> makeArrayInitElem(Ctx& ctx, auto type = typeidx(ctx); CHECK_ERR(type); auto elem = elemidx(ctx); + CHECK_ERR(elem); return ctx.makeArrayInitElem(pos, annotations, *type, *elem); } -- cgit v1.2.3