diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-20 09:26:13 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-20 09:26:13 +0800 |
commit | a6aae2e4413789e548a30fd9cb421cc2f6964b14 (patch) | |
tree | a6872cea76eaea7fe24e4c11ac5eb9b42482a3c4 /src/mir/mir_builder.cpp | |
parent | ad7c16cd3664a79c09e00a76ae4e081aadd88493 (diff) | |
download | mrust-a6aae2e4413789e548a30fd9cb421cc2f6964b14.tar.gz |
MIR - Union support hacked up
Diffstat (limited to 'src/mir/mir_builder.cpp')
-rw-r--r-- | src/mir/mir_builder.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mir/mir_builder.cpp b/src/mir/mir_builder.cpp index a64867b1..73867918 100644 --- a/src/mir/mir_builder.cpp +++ b/src/mir/mir_builder.cpp @@ -238,6 +238,9 @@ void MirBuilder::push_stmt_assign(const Span& sp, ::MIR::LValue dst, ::MIR::RVal for(const auto& val : e.vals) this->moved_lvalue(sp, val); ), + (Variant, + this->moved_lvalue(sp, e.val); + ), (Struct, for(const auto& val : e.vals) this->moved_lvalue(sp, val); |