From: Jason Ekstrand Date: Fri, 25 Mar 2016 17:43:17 +0000 (-0700) Subject: nir/builder: Simplify nir_ssa_undef a bit X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b75d770963a6fde474ed84cad73ee754922bccbf;p=mesa.git nir/builder: Simplify nir_ssa_undef a bit --- diff --git a/src/compiler/nir/nir_builder.h b/src/compiler/nir/nir_builder.h index 22646f7afb4..3dc7c25ec28 100644 --- a/src/compiler/nir/nir_builder.h +++ b/src/compiler/nir/nir_builder.h @@ -83,8 +83,7 @@ nir_ssa_undef(nir_builder *build, unsigned num_components, unsigned bit_size) if (!undef) return NULL; - nir_instr_insert(nir_before_block(nir_start_block(build->impl)), - &undef->instr); + nir_instr_insert(nir_before_cf_list(&build->impl->body), &undef->instr); return &undef->def; }