summaryrefslogtreecommitdiff
path: root/ir_clone.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ir_clone.cpp')
-rw-r--r--ir_clone.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ir_clone.cpp b/ir_clone.cpp
index c810fe8..cb4b02b 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;