From 4aea9d3d47e7e47630704fdf6628221fa45f6151 Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Tue, 2 Jun 2009 17:01:00 +0000 Subject: Use ConstantExpr::alloc instead of ref directly - The "constant optimization" embedded inside ref is going away. - No functionality change. git-svn-id: https://llvm.org/svn/llvm-project/klee/trunk@72730 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Core/Memory.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/Core/Memory.h') diff --git a/lib/Core/Memory.h b/lib/Core/Memory.h index 0f09b162..cfb4ab43 100644 --- a/lib/Core/Memory.h +++ b/lib/Core/Memory.h @@ -118,7 +118,7 @@ public: ref getBoundsCheckOffset(ref offset) const { if (size==0) { - return EqExpr::create(offset, ref(0, kMachinePointerType)); + return EqExpr::create(offset, ConstantExpr::alloc(0, kMachinePointerType)); } else { return UltExpr::create(offset, getSizeExpr()); } @@ -126,9 +126,9 @@ public: ref getBoundsCheckOffset(ref offset, unsigned bytes) const { if (bytes<=size) { return UltExpr::create(offset, - ref(size - bytes + 1, kMachinePointerType)); + ConstantExpr::alloc(size - bytes + 1, kMachinePointerType)); } else { - return ref(0, Expr::Bool); + return ConstantExpr::alloc(0, Expr::Bool); } } }; -- cgit 1.4.1