From: Eric Anholt Date: Thu, 24 Jun 2010 20:31:34 +0000 (-0700) Subject: Fix variable remapping in function cloning. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1b2bcf791365f7bab282e38808efadba19291261;p=mesa.git Fix variable remapping in function cloning. It's (ht, data, key) not (ht, key, data). --- diff --git a/ir_clone.cpp b/ir_clone.cpp index c810fe86164..cb4b02b7de9 100644 --- a/ir_clone.cpp +++ b/ir_clone.cpp @@ -46,7 +46,7 @@ ir_variable::clone(struct hash_table *ht) const var->interpolation = this->interpolation; if (ht) { - hash_table_insert(ht, (void *)const_cast(this), var); + hash_table_insert(ht, var, (void *)const_cast(this)); } return var;