summaryrefslogtreecommitdiff
path: root/tools/standalone_miri/value.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/standalone_miri/value.hpp')
-rw-r--r--tools/standalone_miri/value.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/standalone_miri/value.hpp b/tools/standalone_miri/value.hpp
index 59a570f0..9c780351 100644
--- a/tools/standalone_miri/value.hpp
+++ b/tools/standalone_miri/value.hpp
@@ -398,13 +398,13 @@ struct ValueRef:
if(m_alloc)
{
if( m_alloc.is_alloc() )
- return m_alloc.alloc().get_relocation(ofs);
+ return m_alloc.alloc().get_relocation(m_offset + ofs);
else
return RelocationPtr();
}
else if( m_value )
{
- return m_value->get_relocation(ofs);
+ return m_value->get_relocation(m_offset + ofs);
}
else
{