Merge branch 'master' of ../mesa into vulkan
[mesa.git] / src / glsl / nir / nir_search.c
index 51e69b06d8c3f9ab27e44169864f0fbe7286a2a5..bb1544079142421eef3e0276277e85c5897bfda9 100644 (file)
@@ -367,7 +367,7 @@ nir_replace_instr(nir_alu_instr *instr, const nir_search_expression *search,
    nir_instr_insert_before(&instr->instr, &mov->instr);
 
    nir_ssa_def_rewrite_uses(&instr->dest.dest.ssa,
-                            nir_src_for_ssa(&mov->dest.dest.ssa), mem_ctx);
+                            nir_src_for_ssa(&mov->dest.dest.ssa));
 
    /* We know this one has no more uses because we just rewrote them all,
     * so we can remove it.  The rest of the matched expression, however, we