diff options
author | Ori Bernstein <ori@eigenstate.org> | 2020-03-15 15:08:04 -0700 |
---|---|---|
committer | Ori Bernstein <ori@eigenstate.org> | 2020-03-15 15:08:04 -0700 |
commit | 52dc943702a8f7815546e76286b153c3813e1db0 (patch) | |
tree | 8c74ce293300effa75ae72712eff14bd3d326743 /sys/src/cmd/cpp/cpp.h | |
parent | 5bc9b0c3cac34864d479c099283793ec4ae5565e (diff) | |
download | plan9front-52dc943702a8f7815546e76286b153c3813e1db0.tar.xz |
fix ccom idempotency
ccom may be called multiple times on the same
node, via 'goto loop' calls from the commute
label, OADD, and a few other places.
Casts to void could null out the LHS of the
node, which would cause the compiler to crash
if the cast was revisited due to one of these
cases, because we tried frobbing n->left.
Now, if n->left is nil, we just return.w
Diffstat (limited to 'sys/src/cmd/cpp/cpp.h')
0 files changed, 0 insertions, 0 deletions