qbe

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

commit 5cea0c20ee3573949a2c24e4b3dea65fcbf6e48b
parent 70f297bab7ae5d7291040b0305281a5fa8289f80
Author: Quentin Carbonneaux <quentin@c9x.me>
Date:   Fri,  2 Sep 2022 12:48:10 +0200

flag bad vastart uses

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

diff --git a/parse.c b/parse.c @@ -671,6 +671,8 @@ DoOp: op = Oload; if (op == Talloc1 || op == Talloc2) op = Oalloc; + if (op == Ovastart && !curf->vararg) + err("cannot use vastart in non-variadic function"); if (k >= Ksb) err("size class must be w, l, s, or d"); if (op >= NPubOp)