From 11d1cbae8f642953c5d60faa9a02c9630930461b Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Mon, 22 Jun 2009 03:41:57 +0000 Subject: Remove unnecessary width field, the width is part of the APInt. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@73872 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Expr/Expr.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/Expr') diff --git a/lib/Expr/Expr.cpp b/lib/Expr/Expr.cpp index 2d41a579..1615127a 100644 --- a/lib/Expr/Expr.cpp +++ b/lib/Expr/Expr.cpp @@ -164,7 +164,7 @@ unsigned Expr::computeHash() { } unsigned ConstantExpr::computeHash() { - hashValue = getConstantValue() ^ (width * MAGIC_HASH_CONSTANT); + hashValue = getConstantValue() ^ (getWidth() * MAGIC_HASH_CONSTANT); return hashValue; } @@ -336,7 +336,7 @@ ref ConstantExpr::fromMemory(void *address, Width width) { } void ConstantExpr::toMemory(void *address) { - switch (width) { + switch (getWidth()) { default: assert(0 && "invalid type"); case Expr::Bool: *(( uint8_t*) address) = getConstantValue(); break; case Expr::Int8: *(( uint8_t*) address) = getConstantValue(); break; -- cgit 1.4.1