projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4b2d32b
)
Fix variable remapping in function cloning.
author
Eric Anholt
<eric@anholt.net>
Thu, 24 Jun 2010 20:31:34 +0000
(13:31 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 24 Jun 2010 20:32:35 +0000
(13:32 -0700)
It's (ht, data, key) not (ht, key, data).
ir_clone.cpp
patch
|
blob
|
history
diff --git
a/ir_clone.cpp
b/ir_clone.cpp
index
c810fe8
..
cb4b02b
100644
(file)
--- 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;