diff options
author | John Hodge <tpg@mutabah.net> | 2018-03-04 20:04:31 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2018-03-04 20:04:31 +0800 |
commit | 3950b0e07f6d59653cc66fe6b7f81e81c597f58e (patch) | |
tree | 1e87aa7a6bc6ef985c865c8e746851be5b046141 /src/trans | |
parent | 3fa28ad0f616cff9d8d3a2fdaad266db6c7fe66e (diff) | |
download | mrust-3950b0e07f6d59653cc66fe6b7f81e81c597f58e.tar.gz |
Standalone Miri - More work blasting along
Diffstat (limited to 'src/trans')
-rw-r--r-- | src/trans/codegen_mmir.cpp | 4 |
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! |