From 1b2bcf791365f7bab282e38808efadba19291261 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 24 Jun 2010 13:31:34 -0700 Subject: [PATCH] Fix variable remapping in function cloning. It's (ht, data, key) not (ht, key, data). --- ir_clone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.30.2