aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2021-09-02 12:05:05 -0700
committerMichael Forney <mforney@mforney.org>2021-09-02 12:05:40 -0700
commit19b86179f6a3e165c2c5c312130150ecfaca1efe (patch)
treef5337263f89cb55e449647651c1e67ad749afa7b
parent5e1a570b75d5f5edf41be6c1409c283ca768e7e6 (diff)
qbe: Error on use of long double rather than trigger assertion
-rw-r--r--qbe.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/qbe.c b/qbe.c
index c231095..df363c2 100644
--- a/qbe.c
+++ b/qbe.c
@@ -202,6 +202,7 @@ qbetype(struct type *t)
case 2: return t->basic.issigned ? sh : uh;
case 4: return t->prop & PROPFLOAT ? s : w;
case 8: return t->prop & PROPFLOAT ? d : l;
+ case 16: fatal("long double is not yet supported");
}
assert(0);
}