diff options
author | Andrii Simiklit <[email protected]> | 2019-07-22 18:00:34 +0300 |
---|---|---|
committer | Andrii Simiklit <[email protected]> | 2019-07-23 18:08:58 +0300 |
commit | 79ab2c3e5764f6ac5e20338dc2c6c750eed9abd2 (patch) | |
tree | 4823a985397d50724f66bfbffb3e29a11f8315cb | |
parent | 397f9ba69fcaef17de5c8f639957743890fa7805 (diff) |
nir: use | instead of || operator
warning: use of logical '||' with constant operand
note: use '|' for a bitwise operation
Fixes: 758fdce9fee ("nir: Add some generic helpers for writing lowering passes")
Reviewed-by: Caio Marcelo de Oliveira Filho <[email protected]>
Reviewed-by: Alyssa Rosenzweig <[email protected]>
Reviewed-by: Eric Engestrom <[email protected]>
Signed-off-by: Andrii Simiklit <[email protected]>
-rw-r--r-- | src/compiler/nir/nir.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compiler/nir/nir.c b/src/compiler/nir/nir.c index e09cb71bb35..0e2face3109 100644 --- a/src/compiler/nir/nir.c +++ b/src/compiler/nir/nir.c @@ -1838,7 +1838,7 @@ nir_function_impl_lower_instructions(nir_function_impl *impl, nir_builder b; nir_builder_init(&b, impl); - nir_metadata preserved = nir_metadata_block_index || + nir_metadata preserved = nir_metadata_block_index | nir_metadata_dominance; bool progress = false; |