diff options
author | Cristian Cadar <cristic@cs.stanford.edu> | 2012-11-05 12:33:25 +0000 |
---|---|---|
committer | Cristian Cadar <cristic@cs.stanford.edu> | 2012-11-05 12:33:25 +0000 |
commit | ad69a7f9bedb750c95a0dad31103de5a80cdeeee (patch) | |
tree | 743aeb0f06b0b2f37435797d091f6beb2c11f1cc /lib/Expr | |
parent | bd6bbd2110c26aa66d130e6236d540fd9c453852 (diff) | |
download | klee-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/Expr')
-rw-r--r-- | lib/Expr/Expr.cpp | 3 |
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; } /***/ |