summaryrefslogtreecommitdiffstats
path: root/src/compiler/nir/nir_lower_io.c
diff options
context:
space:
mode:
authorDylan Baker <[email protected]>2019-10-25 13:48:38 -0700
committerDylan Baker <[email protected]>2019-11-05 08:46:48 -0800
commitc1f1a1056f21e8f8be0e06958d2139cf84b519c0 (patch)
tree863647fdf20cfcfecd874f27909b23b3c63c4f38 /src/compiler/nir/nir_lower_io.c
parent13768f3714a53fd6e599baa7fa10b64bb64c94fb (diff)
nir: correct use of identity check in python
Python has the identity operator `is`, and the equality operator `==`. Using `is` with strings sometimes works in CPython due to optimizations (they have some kind of cache), but it may not always work. Fixes: 96c4b135e34d0804e41bfbc28fc1b5050c49d71e ("nir/algebraic: Don't put quotes around floating point literals") Reviewed-by: Matt Turner <[email protected]> (cherry picked from commit 717606f9f32af6540b68336e676fca9dd16f282a)
Diffstat (limited to 'src/compiler/nir/nir_lower_io.c')
0 files changed, 0 insertions, 0 deletions