about summary refs log tree commit diff homepage
path: root/lib/Expr/Expr.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-03 03:15:59 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-03 03:15:59 +0000
commitc4806b9f06b7e345e2ba36d1123c589d18976d57 (patch)
treeac98fe9de103fff02024176b2fcfbb4432f3e7a7 /lib/Expr/Expr.cpp
parentcd97597b4fade91b89566f92f4f951609958ffb5 (diff)
downloadklee-c4806b9f06b7e345e2ba36d1123c589d18976d57.tar.gz
Fix bug I just introduced, ConstantExpr::computeHash needs to update the
hashValue.


git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72752 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Expr/Expr.cpp')
-rw-r--r--lib/Expr/Expr.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp
index e8024fc9..6e70e6f2 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -165,7 +165,8 @@ unsigned Expr::computeHash() {
 }
 
 unsigned ConstantExpr::computeHash() {
-  return asUInt64 ^ (width * MAGIC_HASH_CONSTANT);
+  hashValue = asUInt64 ^ (width * MAGIC_HASH_CONSTANT);
+  return hashValue;
 }
 
 unsigned CastExpr::computeHash() {