diff options
author | John Hodge <tpg@mutabah.net> | 2016-11-19 22:46:14 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-11-19 22:46:14 +0800 |
commit | cf499efccf021db06630b76224bcb68dcf923975 (patch) | |
tree | f64e891cb31ed6f886a83b110b94fed718cb9011 /src/mir/from_hir.cpp | |
parent | 5fe7fcc580db497b267ca0f820e5d3268fe8aafb (diff) | |
download | mrust-cf499efccf021db06630b76224bcb68dcf923975.tar.gz |
HIR - Union handling
Diffstat (limited to 'src/mir/from_hir.cpp')
-rw-r--r-- | src/mir/from_hir.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/mir/from_hir.cpp b/src/mir/from_hir.cpp index 9f8a91e3..d635fc82 100644 --- a/src/mir/from_hir.cpp +++ b/src/mir/from_hir.cpp @@ -1668,7 +1668,7 @@ namespace { fields_ptr = &it->second.as_Struct(); ), (Union, - TODO(node.span(), "_StructLiteral Union"); + BUG(node.span(), "_StructLiteral Union"); ), (Struct, fields_ptr = &e->m_data.as_Named(); @@ -1709,6 +1709,10 @@ namespace { mv$(values) }) ); } + void visit(::HIR::ExprNode_UnionLiteral& node) override + { + TODO(node.span(), "_UnionLiteral"); + } void visit(::HIR::ExprNode_Tuple& node) override { |