diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-03-14 10:29:13 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-03-14 10:32:22 -0700 |
| commit | 770b6e2fc2f8749466487e4c2ae031b8ceecae04 (patch) | |
| tree | 55cbf8481fa11d4cd778a5152cc187e36018e357 /src/rustllvm/ExecutionEngineWrapper.cpp | |
| parent | 2585803ec1c2476d0fbcf384b42f76677434bbb7 (diff) | |
| download | rust-770b6e2fc2f8749466487e4c2ae031b8ceecae04.tar.gz rust-770b6e2fc2f8749466487e4c2ae031b8ceecae04.zip | |
rustc: Fix cfg(not(a, b)) to be not(a && b)
Previously, the cfg attribute `cfg(not(a, b))` was translated to `(!a && !b)`, but this isn't very useful because that can already be expressed as `cfg(not(a), not(b))`. This commit changes the translation to `!(a && b)` which is more symmetrical of the rest of the `cfg` attribute. Put another way, I would expect `cfg(clause)` to be the opposite of `cfg(not(clause))`, but this is not currently the case with multiple element clauses.
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
