diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-08-31 21:51:52 +0200 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-09-06 01:37:51 +0200 |
| commit | de710454f956bf4c2b0c880597de0c79a7449c0f (patch) | |
| tree | f7068030ae417b426da18adc617329830c7fe1e4 /builtin.c | |
| parent | e811962ea0f56da569c6504ac150b357b069b11a (diff) | |
| download | sparse-dev-de710454f956bf4c2b0c880597de0c79a7449c0f.tar.gz | |
use UNDEF for missing returns
If a return statement is missing in the last block, the
generated IR will be invalid because the number of operands
in the exit phi-node will not match the number or parent BBs.
Detect this situation and insert an UNDEF for the missing value.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'builtin.c')
0 files changed, 0 insertions, 0 deletions
