diff options
author | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 07:09:13 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2009-06-04 07:09:13 +0000 |
commit | c4a0e57c082e567e81ad3609a32ee492d41f03f9 (patch) | |
tree | 428ab02726ff8a8ba8f4b090ce864826591ce639 /include | |
parent | 136068f571d7f47bf1c2ab9417a874b0829bc670 (diff) | |
download | klee-c4a0e57c082e567e81ad3609a32ee492d41f03f9.tar.gz |
Change ConstantExpr::{alloc,create} to return a ref<ConstantExpr>
git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72853 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/klee/Expr.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/klee/Expr.h b/include/klee/Expr.h index 69ed60a1..3473784b 100644 --- a/include/klee/Expr.h +++ b/include/klee/Expr.h @@ -330,14 +330,14 @@ public: static ref<Expr> fromMemory(void *address, Width w); void toMemory(void *address); - static ref<Expr> alloc(uint64_t v, Width w) { + static ref<ConstantExpr> alloc(uint64_t v, Width w) { // constructs an "optimized" ConstantExpr - ref<Expr> r(new ConstantExpr(v, w)); + ref<ConstantExpr> r(new ConstantExpr(v, w)); r->computeHash(); return r; } - static ref<Expr> create(uint64_t v, Width w) { + static ref<ConstantExpr> create(uint64_t v, Width w) { assert(v == bits64::truncateToNBits(v, w) && "invalid constant"); return alloc(v, w); |