diff options
author | Quentin Carbonneaux <quentin@c9x.me> | 2022-09-02 12:48:10 +0200 |
---|---|---|
committer | Quentin Carbonneaux <quentin@c9x.me> | 2022-10-03 10:41:30 +0200 |
commit | 5cea0c20ee3573949a2c24e4b3dea65fcbf6e48b (patch) | |
tree | b2cd6650d2df11a527361f769fa7c4ad470e824f | |
parent | 70f297bab7ae5d7291040b0305281a5fa8289f80 (diff) | |
download | roux-5cea0c20ee3573949a2c24e4b3dea65fcbf6e48b.tar.gz |
flag bad vastart uses
-rw-r--r-- | parse.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/parse.c b/parse.c index 583388b..85214c2 100644 --- 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) |