Module: Mesa Branch: main Commit: 1c2bc67fac7f240c7a43edfc8385252eacd813d7 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=1c2bc67fac7f240c7a43edfc8385252eacd813d7
Author: Alyssa Rosenzweig <[email protected]> Date: Tue Aug 24 16:40:54 2021 -0400 pan/bi: Assert l != NULL in bi_ra Confuses cppcheck; indeed, the proof is confusing. Signed-off-by: Alyssa Rosenzweig <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/12530> --- src/panfrost/bifrost/bi_ra.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/panfrost/bifrost/bi_ra.c b/src/panfrost/bifrost/bi_ra.c index bc65c8e336d..595275b6be6 100644 --- a/src/panfrost/bifrost/bi_ra.c +++ b/src/panfrost/bifrost/bi_ra.c @@ -535,6 +535,7 @@ bi_register_allocate(bi_context *ctx) } assert(success); + assert(l != NULL); ctx->info->tls_size = spill_count; bi_install_registers(ctx, l);
