diff options
Diffstat (limited to 'lib/Core/Memory.cpp')
-rw-r--r-- | lib/Core/Memory.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Core/Memory.cpp b/lib/Core/Memory.cpp index de48651b..b4c433b1 100644 --- a/lib/Core/Memory.cpp +++ b/lib/Core/Memory.cpp @@ -339,7 +339,7 @@ void ObjectState::write8(unsigned offset, ref<Expr> value) { } void ObjectState::write8(ref<Expr> offset, ref<Expr> value) { - assert(!offset->isConstant() && "constant offset passed to symbolic write8"); + assert(!isa<ConstantExpr>(offset) && "constant offset passed to symbolic write8"); unsigned base, size; fastRangeCheckOffset(offset, &base, &size); flushRangeForWrite(base, size); |