aco: Use ASSERTED to avoid unused variable warning.
authorTimur Kristóf <timur.kristof@gmail.com>
Tue, 16 Mar 2021 19:10:51 +0000 (20:10 +0100)
committerMarge Bot <eric+marge@anholt.net>
Tue, 16 Mar 2021 21:46:52 +0000 (21:46 +0000)
Signed-off-by: Timur Kristóf <timur.kristof@gmail.com>
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9632>

src/amd/compiler/aco_insert_exec_mask.cpp

index 49367e3..20df892 100644 (file)
@@ -234,7 +234,7 @@ void handle_exact_loops(wqm_ctx& ctx, exec_ctx& exec_ctx, unsigned preheader)
    }
    assert(parent_branch >= 0);
 
-   Block& branch = exec_ctx.program->blocks[parent_branch];
+   ASSERTED Block& branch = exec_ctx.program->blocks[parent_branch];
    assert(branch.kind & block_kind_branch);
    if (ctx.branch_wqm[parent_branch]) {
       /* The branch can't be done in Exact because some other blocks in it