summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/parser/parsers.h1
1 files changed, 1 insertions, 0 deletions
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);
}