qbe

Internal scc patchset buffer for QBE
Log | Files | Refs | README | LICENSE

commit 839dca331a339d8beec727a6ffd0740ad4f5e13a
parent 67db7b6578b855d8ee7e6c5ba67a3dd7020fd17e
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Mon, 30 Nov 2015 16:12:51 -0500

more error reporting in parsedat()

Diffstat:
Mlisc/parse.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git a/lisc/parse.c b/lisc/parse.c @@ -763,6 +763,7 @@ parsedat(void cb(Dat *)) err("data contents must be { .. } or \" .. \""); for (;;) { switch (nextnl()) { + default: err("invalid size specifier in data"); case TL: d.type = DL; break; case TW: d.type = DW; break; case TH: d.type = DH; break;