summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-03-04 20:04:31 +0800
committerJohn Hodge <tpg@mutabah.net>2018-03-17 18:52:16 +0800
commit5d78f1ba303a0e8196e62d4bd0c7708387164993 (patch)
tree1e87aa7a6bc6ef985c865c8e746851be5b046141 /src
parentdcf1204a8bae3f15e875ffe9c861c38789f524fe (diff)
downloadmrust-5d78f1ba303a0e8196e62d4bd0c7708387164993.tar.gz
Standalone Miri - More work blasting along
Diffstat (limited to 'src')
-rw-r--r--src/trans/codegen_mmir.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/trans/codegen_mmir.cpp b/src/trans/codegen_mmir.cpp
index 88c81568..cea409bf 100644
--- a/src/trans/codegen_mmir.cpp
+++ b/src/trans/codegen_mmir.cpp
@@ -348,6 +348,10 @@ namespace
{
m_of << "\t" << e.offset << " = " << e.ty << ";\n";
}
+ for(const auto& e : repr->fields)
+ {
+ m_of << "\t" << "#" << (&e - repr->fields.data()) << ";\n";
+ }
m_of << "}\n";
// TODO: Drop glue!