From 9fbd39da947d7664d9905677c03dd12f548ebf05 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 3 Jun 2009 03:04:21 +0000 Subject: 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 --- lib/Expr/Expr.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'lib/Expr') 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() { -- cgit 1.4.1