Module: Mesa Branch: main Commit: 5db098c98bd7d313b909041661fdb67bfc56362c URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5db098c98bd7d313b909041661fdb67bfc56362c
Author: Bas Nieuwenhuizen <[email protected]> Date: Mon Oct 25 23:46:12 2021 +0200 aco: Remove useless sub-expr. ../src/amd/compiler/aco_instruction_selection.cpp:11915:83: error: expression result unused [-Werror,-Wunused-value] bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id).instr; Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13164> --- src/amd/compiler/aco_instruction_selection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 54575986aaf..baa21d66ab6 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -11912,7 +11912,7 @@ calc_nontrivial_instance_id(Builder& bld, const struct radv_shader_args* args, u div_info = Operand(tmp_vgpr1, v1); } - bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id).instr; + bld.vop2(aco_opcode::v_lshrrev_b32, fetch_index_def, div_info, instance_id); Instruction* instr; if (bld.program->chip_class >= GFX9)
