aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--qbe.c2
1 files changed, 2 insertions, 0 deletions
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);