summaryrefslogtreecommitdiff
path: root/src/trans/codegen_mmir.cpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2018-03-04 20:04:31 +0800
committerJohn Hodge <tpg@mutabah.net>2018-03-04 20:04:31 +0800
commit3950b0e07f6d59653cc66fe6b7f81e81c597f58e (patch)
tree1e87aa7a6bc6ef985c865c8e746851be5b046141 /src/trans/codegen_mmir.cpp
parent3fa28ad0f616cff9d8d3a2fdaad266db6c7fe66e (diff)
downloadmrust-3950b0e07f6d59653cc66fe6b7f81e81c597f58e.tar.gz
Standalone Miri - More work blasting along
Diffstat (limited to 'src/trans/codegen_mmir.cpp')
-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!