nir/lower_returns: Repair SSA after doing return lowering

This commit is contained in:
Jason Ekstrand 2016-01-18 09:24:07 -08:00
parent b11825590d
commit 61ba97522e

View file

@ -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;
}