summaryrefslogtreecommitdiff
path: root/tools/standalone_miri/value.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@ucc.asn.au>2019-07-21 13:47:27 +0800
committerJohn Hodge <tpg@ucc.asn.au>2019-07-21 13:47:27 +0800
commitc96d5e03c73d0cd171b29c387601776174e811b8 (patch)
treea462fafc97d3215750164c7a506b22ed6bfbefe8 /tools/standalone_miri/value.hpp
parent0a45ac7c93e4e8584fef15b6f2896528a9dbffdd (diff)
downloadmrust-c96d5e03c73d0cd171b29c387601776174e811b8.tar.gz
standalone_miri - Improved logging, fix incorrect offset when getting relocations (1.29 hello is working)
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
{