diff options
| author | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-01-29 13:37:55 +0100 |
|---|---|---|
| committer | Luc Van Oostenryck <luc.vanoostenryck@gmail.com> | 2018-02-05 23:41:01 +0100 |
| commit | 9fb6070311ea3ebc0ad1e8d60935a604f45e4e9c (patch) | |
| tree | 6b819499164210cb20cc0fb4c8d829ead52bba2d /Documentation | |
| parent | bc112432796021623ca6d4efa7efa3a183196a09 (diff) | |
| download | sparse-dev-9fb6070311ea3ebc0ad1e8d60935a604f45e4e9c.tar.gz | |
fix examination of bad typeof
When the operand of typeof() is invalid, the corresponding
type is also invalid and can't be used. But currently,
when the corresponding SYM_TYPEOF symbol is examined,
this symbol is then simply returned as is. This, of course,
create problem for subsequent code since an examined type is
not supposed to be a SYM_TYPEOF anymore (one of the symptoms
will be warning about "unknown type 11").
Fix this by changing the SYM_TYPEOF into a SYM_NODE (as it's
expect) but pointing to bad_ctype. So further processing gently
continue and the 'bad_ctype' will do its job when needed.
Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions
