diff options
author | Eric Anholt <eric@anholt.net> | 2010-06-24 13:31:34 -0700 |
---|---|---|
committer | Eric Anholt <eric@anholt.net> | 2010-06-24 13:32:35 -0700 |
commit | 1b2bcf791365f7bab282e38808efadba19291261 (patch) | |
tree | 9d15e77ae7c34f5376192ccef378fc49fad8df1c | |
parent | 4b2d32b5b5864869419a88d194b740bc0ec211e8 (diff) |
Fix variable remapping in function cloning.
It's (ht, data, key) not (ht, key, data).
-rw-r--r-- | ir_clone.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ir_clone.cpp b/ir_clone.cpp index c810fe8616..cb4b02b7de 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<ir_variable *>(this), var); + hash_table_insert(ht, var, (void *)const_cast<ir_variable *>(this)); } return var; |