diff options
| author | David Barksdale <amatus@amat.us> | 2017-11-02 11:38:11 -0500 |
|---|---|---|
| committer | plafosse <peter@vector35.com> | 2017-11-02 12:38:11 -0400 |
| commit | 704ceff1223485e9dc12947a36b0d56a3ff9d3ae (patch) | |
| tree | b2d619645ead957ac952c3545382a81566f595e6 /python/function.py | |
| parent | 54a23d9e1ae34936427461b2807e3d5980e17486 (diff) | |
Move the function discrimination from SSAVariable to Variable (#856)
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/function.py b/python/function.py index cbbdf9bd..f8aaae44 100644 --- a/python/function.py +++ b/python/function.py @@ -241,10 +241,10 @@ class Variable(object): return self.name def __eq__(self, other): - return self.identifier == other.identifier + return (self.identifier, self.function) == (other.identifier, other.function) def __hash__(self): - return hash(self.identifier) + return hash((self.identifier, self.function)) class ConstantReference(object): |
