From ad69a7f9bedb750c95a0dad31103de5a80cdeeee Mon Sep 17 00:00:00 2001 From: Cristian Cadar Date: Mon, 5 Nov 2012 12:33:25 +0000 Subject: Fixed a bug in Array::computeHash() git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@167382 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Expr.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/Expr') 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; } /***/ -- cgit 1.4.1