about summary refs log tree commit diff homepage
path: root/lib/Expr
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-06-03 03:04:21 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-06-03 03:04:21 +0000
commit9fbd39da947d7664d9905677c03dd12f548ebf05 (patch)
treed5df69c71e52322f9ee6251cf438d12ef4b87a8d /lib/Expr
parentbcfc431c7133fb93f93c1768fd900f049e365323 (diff)
downloadklee-9fbd39da947d7664d9905677c03dd12f548ebf05.tar.gz
Inline Expr::hashConstant into callers.
 (Extraneous uses are going away shortly)


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