about summary refs log tree commit diff homepage
path: root/lib
diff options
context:
space:
mode:
authorCristian Cadar <cristic@cs.stanford.edu>2012-11-05 12:33:25 +0000
committerCristian Cadar <cristic@cs.stanford.edu>2012-11-05 12:33:25 +0000
commitad69a7f9bedb750c95a0dad31103de5a80cdeeee (patch)
tree743aeb0f06b0b2f37435797d091f6beb2c11f1cc /lib
parentbd6bbd2110c26aa66d130e6236d540fd9c453852 (diff)
downloadklee-ad69a7f9bedb750c95a0dad31103de5a80cdeeee.tar.gz
Fixed a bug in Array::computeHash()
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@167382 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-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 630de164..d177eca6 100644
--- a/lib/Expr/Expr.cpp
+++ b/lib/Expr/Expr.cpp
@@ -494,7 +494,8 @@ unsigned Array::computeHash() {
   unsigned res = 0;
   for (unsigned i = 0, e = name.size(); i != e; ++i)
     res = (res * Expr::MAGIC_HASH_CONSTANT) + name[i];
-  return res; 
+  hashValue = res;
+  return hashValue; 
 }
 
 /***/