From 61ba97522ea8551714c5b8b2a90983594c208165 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Mon, 18 Jan 2016 09:24:07 -0800 Subject: [PATCH] nir/lower_returns: Repair SSA after doing return lowering --- src/glsl/nir/nir_lower_returns.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/glsl/nir/nir_lower_returns.c b/src/glsl/nir/nir_lower_returns.c index af16676b822..91bb2f7dfeb 100644 --- a/src/glsl/nir/nir_lower_returns.c +++ b/src/glsl/nir/nir_lower_returns.c @@ -224,8 +224,10 @@ nir_lower_returns_impl(nir_function_impl *impl) bool progress = lower_returns_in_cf_list(&impl->body, &state); - if (progress) + if (progress) { nir_metadata_preserve(impl, nir_metadata_none); + nir_repair_ssa_impl(impl); + } return progress; } -- 2.30.2