cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit 2d2903b113c99f5202105e3915f616181b896c90
parent 70a293121f71e2481fd5b85007195c879cf218ef
Author: Michael Forney <mforney@mforney.org>
Date:   Tue, 16 Apr 2019 17:21:36 -0700

Error instead of segfault when working with `long double`

Diffstat:
Mqbe.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git 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);