qbe

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

commit bbf90069b3aed188ee1d2a7e5fb83ce93bce51be
parent 84bb28c0422c2d0dea555aeec946e73cf2b818a8
Author: Quentin Carbonneaux <quentin.carbonneaux@yale.edu>
Date:   Wed, 20 Apr 2016 14:03:38 -0400

disallow phi nodes in the start block

AFL found this bug.

Diffstat:
Mparse.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/parse.c b/parse.c @@ -578,7 +578,7 @@ parseline(PState ps) op = next(); DoOp: if (op == Tphi) { - if (ps != PPhi) + if (ps != PPhi || curb == curf->start) err("unexpected phi instruction"); op = -1; }