From 2d2903b113c99f5202105e3915f616181b896c90 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Tue, 16 Apr 2019 17:21:36 -0700 Subject: Error instead of segfault when working with `long double` --- qbe.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qbe.c b/qbe.c index 2a05456..4d24581 100644 --- a/qbe.c +++ b/qbe.c @@ -1020,6 +1020,8 @@ emitvalue(struct value *v) static void emitrepr(struct repr *r, bool abi, bool ext) { + if (!r) + fatal("type has no QBE representation"); if (abi && r->abi.id) { putchar(':'); emitname(&r->abi); -- cgit v1.2.3