amd/llvm: Fix warning due to asserted-only variable.
authorBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 8 Oct 2019 01:41:50 +0000 (03:41 +0200)
committerBas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tue, 8 Oct 2019 08:22:56 +0000 (10:22 +0200)
commita0c930d2844df038eefe2b67d4a7d7ee322ea396
treeae324b5ef948ed6452f24c86b2fcd8998847b836
parent71eda74f7c8c9536f231bc7dc92f3ddfae83ad00
amd/llvm: Fix warning due to asserted-only variable.

[212/893] Compiling C object 'src/amd/llvm/ce8261c@@amd_common_llvm@sta/ac_nir_to_llvm.c.o'.
../mesa/src/amd/llvm/ac_nir_to_llvm.c: In function ‘visit_image_atomic’:
../mesa/src/amd/llvm/ac_nir_to_llvm.c:2636:17: warning: unused variable ‘format’ [-Wunused-variable]
 2636 |    const GLenum format = nir_intrinsic_format(instr);
      |                 ^~~~~~

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/amd/llvm/ac_nir_to_llvm.c