diff options
Diffstat (limited to 'lib/Core/ImpliedValue.cpp')
-rw-r--r-- | lib/Core/ImpliedValue.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/Core/ImpliedValue.cpp b/lib/Core/ImpliedValue.cpp index 386c8d80..1de47d0c 100644 --- a/lib/Core/ImpliedValue.cpp +++ b/lib/Core/ImpliedValue.cpp @@ -239,8 +239,9 @@ void ImpliedValue::checkForImpliedValues(Solver *S, ref<Expr> e, for (std::vector< ref<ReadExpr> >::iterator i = reads.begin(), ie = reads.end(); i != ie; ++i) { ReadExpr *re = i->get(); - ref<Expr> size = ref<Expr>(re->updates.root->size, kMachinePointerType); - assumption.push_back(UltExpr::create(re->index, size)); + assumption.push_back(UltExpr::create(re->index, + ConstantExpr::alloc(re->updates.root->size, + kMachinePointerType))); } ConstraintManager assume(assumption); |