summaryrefslogtreecommitdiff
path: root/src/mir/mir.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-11-20 08:31:47 +0800
committerJohn Hodge <tpg@mutabah.net>2016-11-20 08:31:47 +0800
commitad7c16cd3664a79c09e00a76ae4e081aadd88493 (patch)
tree708f52369be4d9374248c9e0b441634a8f7e7c6a /src/mir/mir.hpp
parentcf499efccf021db06630b76224bcb68dcf923975 (diff)
downloadmrust-ad7c16cd3664a79c09e00a76ae4e081aadd88493.tar.gz
MIR Gen - Roughed union support
Diffstat (limited to 'src/mir/mir.hpp')
-rw-r--r--src/mir/mir.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mir/mir.hpp b/src/mir/mir.hpp
index c030cc37..c0c94807 100644
--- a/src/mir/mir.hpp
+++ b/src/mir/mir.hpp
@@ -135,6 +135,11 @@ TAGGED_UNION(RValue, Use,
(Array, struct {
::std::vector<LValue> vals;
}),
+ //(Variant, struct {
+ // ::HIR::GenericPath path;
+ // unsigned int index;
+ // LValue val;
+ // }),
(Struct, struct {
::HIR::GenericPath path;
::std::vector<LValue> vals;