diff options
author | John Hodge <tpg@mutabah.net> | 2016-09-24 22:58:28 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-09-24 22:58:28 +0800 |
commit | 7fa72647893f4661b701da4344e8b40645fbb0e6 (patch) | |
tree | 5c63ee2080db7251583ac8f805a6190ab933dc10 /src/mir/from_hir.hpp | |
parent | 8d8dcfa8484a134cace25983ae8682da464d3ca8 (diff) | |
download | mrust-7fa72647893f4661b701da4344e8b40645fbb0e6.tar.gz |
MIR Gen - Support zero-arm matches - Since they can never be reached, emit a Diverge
Diffstat (limited to 'src/mir/from_hir.hpp')
-rw-r--r-- | src/mir/from_hir.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mir/from_hir.hpp b/src/mir/from_hir.hpp index c915cfcc..39890bbf 100644 --- a/src/mir/from_hir.hpp +++ b/src/mir/from_hir.hpp @@ -167,6 +167,7 @@ public: void terminate_scope(const Span& sp, ScopeHandle ); void terminate_scope_early(const Span& sp, const ScopeHandle& ); void end_split_arm(const Span& sp, const ScopeHandle& , bool reachable); + void end_split_arm_early(const Span& sp); const ScopeHandle& fcn_scope() const { return m_fcn_scope; |