diff options
| author | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-09-07 02:11:18 +0200 |
|---|---|---|
| committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2019-09-07 02:11:18 +0200 |
| commit | 766a641d252cf4de21d50b2753dd8c25490b8ba0 (patch) | |
| tree | 348d1dca3266f0de0580d9b773e9503dee85fef9 /lib/constitution | |
| parent | d1204d9b8085634241bf5655279e54a606406cb1 (diff) | |
| download | plan9front-766a641d252cf4de21d50b2753dd8c25490b8ba0.tar.xz | |
cc: fix void cast crash
the following code reproduces the crash:
void
foo(void)
{
}
void
main(int argc, char **argv)
{
(void)(1 ? (void)0 : foo());
}
the problem is that side() gives a false positive on the OCOND
with later constant folding eleminating the acutal side effect
and OCAST ending up with two nested OCATS with the nested one
being zapped (type == T).
Diffstat (limited to 'lib/constitution')
0 files changed, 0 insertions, 0 deletions
