[Mesa-dev] [PATCH 046/133] nir: Add an assert

Connor Abbott cwabbott0 at gmail.com
Wed Dec 17 11:33:12 PST 2014


Sorry to ask, but... this one is so trivial and touches code that no
earlier patch touches, why don't we just squash it into the commit
that adds nir.c?

On Tue, Dec 16, 2014 at 1:04 AM, Jason Ekstrand <jason at jlekstrand.net> wrote:
> ---
>  src/glsl/nir/nir.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/src/glsl/nir/nir.c b/src/glsl/nir/nir.c
> index 0124799..3c897b2 100644
> --- a/src/glsl/nir/nir.c
> +++ b/src/glsl/nir/nir.c
> @@ -840,6 +840,7 @@ handle_jump(nir_block *block)
>              unlink_blocks(last_block, after_block);
>        }
>     } else {
> +      assert(jump_instr->type == nir_jump_return);
>        link_blocks(block, impl->end_block, NULL);
>     }
>  }
> --
> 2.2.0
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/mesa-dev


More information about the mesa-dev mailing list